Skip to main content
210 votes
7 answers
78k views

I'm going migrate to Redux. My application consists of a lot of parts (pages, components) so I want to create many reducers. Redux examples show that I should use combineReducers() to generate one ...
Pavel Teterin's user avatar
91 votes
8 answers
138k views

In a webpack 3 configuration I would use the code below to create separate vendor.js chunk: entry: { client: ['./client.js'], vendor: ['babel-polyfill', 'react', 'react-dom', 'redux'], }, ...
Tomasz Mularczyk's user avatar
83 votes
13 answers
87k views

If I make changes to my angular app the chunk names will change on build and the old version will be removed from the dist folder. Once deployed, if a user is currently on the site, and then navigates ...
dottodot's user avatar
  • 1,649
43 votes
4 answers
37k views

I've integrated Sentry with my website a few days ago and I noticed that sometimes users receive this error in their console: ChunkLoadError: Loading chunk <CHUNK_NAME> failed. (error: <...
5imone's user avatar
  • 453
30 votes
2 answers
12k views

Using split chunks plugin with the following config : { entry: { entry1: [entry1.js], entry2: [entry2.js], entry3: [entry3.js], ... } optimization: { ...
Daniel's user avatar
  • 6,551
28 votes
4 answers
3k views

Here's an unexpected issue I've run into with Webpack code splitting in the wild: Imagine this scenario: The user loads a React app with Webpack code splitting and a few bundle chunks are loaded A ...
Maros's user avatar
  • 1,983
25 votes
2 answers
14k views

We are developing a Vue.js application based on Vue CLI 3 with Vue Router and Webpack. The routes are lazy-loaded and the chunk file names contain a hash for cache busting. In general, everything is ...
str's user avatar
  • 45.5k
20 votes
1 answer
12k views

Using webpack, if I want to code-split an entire module, I can change import Module from 'module' at the top of my file to import('module').then(Module => {... when I need to use the module (...
Daniel Elkington's user avatar
18 votes
1 answer
7k views

This is probably a dummy question but after reading split-chunks-plugin documentation and this article about code splitting, i still can't understand what an async chunk refers to. The split-chunks-...
Samuel Maisonneuve's user avatar
17 votes
2 answers
6k views

since we can import style sheets like below : <link rel="stylesheet" media="screen and (min-width: 900px)" href="widescreen.css"> <link rel="stylesheet" media="screen and (max-width: 600px)"...
Alireza's user avatar
  • 2,455
16 votes
2 answers
16k views

We are building our new website entirely in React and utilizing code-splitting & scss. Whenever a new page is requested it loads the raw HTML in the browser first and then a split second or so ...
Gregg's user avatar
  • 1,474
14 votes
4 answers
9k views

I'm using lazy to split my routes and I wanna know if there is any way I can get the loading progress in lazy and suspense. Currently I'm using it like this. const Home = lazy(() => import("./...
Thu San's user avatar
  • 1,604
13 votes
3 answers
11k views

I'm using webpack 4.43.0. How do I prevent codesplitting from happening in webpack? All these files are created - 0.bundle.js up to 11.bundle.js (alongside the expected bundle.js), when I run webpack....
nnyby's user avatar
  • 4,668
12 votes
1 answer
7k views

I understand that Suspense components are the React-ian approach to code splitting, which makes webpages load faster. Now, say you have a component hierarchy like this: <App> <Suspense ...
Paul Razvan Berg's user avatar
11 votes
3 answers
13k views

I have a 2 step Application Flow that looks like this: const Step1 = React.lazy(() => import('./Step1')); const Step1 = React.lazy(() => import('./Step2')); <Suspense fallback={<Loading /...
dmwong2268's user avatar
  • 3,645

15 30 50 per page
1
2 3 4 5
31