You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-3Lines changed: 44 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -434,17 +434,58 @@ const MyPage = () => (
434
434
);
435
435
```
436
436
437
-
## Webpack integration (experimental)
437
+
## Bundler integration
438
+
Keep in mind - you dont "need" this. It will just make integration slightly better in terms of prefetching (which affects network recourse priority) and thus startup time.
439
+
440
+
### Webpack integration
441
+
You might preload/prefetch used styles and scripts, which were defined with `webpackChunkName`
__DO NOT__ actually __load__ reported resources - only preload them, and let webpack do rest.
444
468
445
-
// use flush-webpack-chunks to discover assets behind chunk name
469
+
#### Via assets.json
470
+
You you are using [assets-webpack-plugin](https://github.com/ztoben/assets-webpack-plugin) then you have only list of assets, without dependencies between.
0 commit comments