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
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,6 @@ res.send(`
50
50
${styles}
51
51
</head>
52
52
<body>
53
-
${styles}
54
53
<div id="root">${app}</div>
55
54
${js}
56
55
</body>
@@ -249,7 +248,7 @@ deep control of the amount of bytes you send in your initial request while takin
249
248
Until now, the best you could do is split your app into chunks, but then additional requests on the client were needed
250
249
to get those chunks; and then on top of that the promise of server-side rendering was lost.
251
250
252
-
> Note: if you require a less automated approach where you're given just the stylesheets and scripts corresponding to dynamic chunks (e.g. not `main.js`), see `flushFiles` in the [the low-level API section](#low-level-api-flush-files).
251
+
> Note: if you require a less automated approach where you're given just the stylesheets and scripts corresponding to dynamic chunks (e.g. not `main.js`), see `flushFiles` in the [the low-level API section](#low-level-api-flushfiles).
253
252
254
253
## Options API:
255
254
@@ -791,9 +790,9 @@ It should be clear by now that the main work in using `webpack-flush-chunks` is
791
790
webpack configs. It's therefore extremely important that you're armed with the precise boilerplates for the route you're taking. Here they are:
After checking out the above boilerplates, clicking around their files, and running the different setups (development, production, babel server, etc), how to use *Webpack Flush Chunks* should make sense,
799
798
and you should have a fool-proof place to start from.
@@ -820,7 +819,7 @@ opinion.
820
819
821
820
822
821
## Low-level API: `flushFiles`
823
-
For advanced users that want all files flushed (`.js`, `.css` or whatever else might be in there) and without named entry chunks (such as `bootstrap`, `vendor`, and `main`), here you go:
822
+
For advanced users that want access to all files flushed (`.js`, `.css` or whatever else might be in there) and without named entry chunks you already know (such as `bootstrap`, `vendor`, and `main`), here you go:
0 commit comments