3 ms·
We have a plugin built around the research on HTTP/2 and web perf (which based on the data so far points to bundling still yielding the optimal results) called
by thelarkinn 10y ago
We have a plugin built around the research on HTTP/2 and web perf (which based on the data so far points to bundling still yielding the optimal results) called AgressiveSplittingPlugin.
It's designed to allow you to specify a max and min file size and webpack(2) will create x bundles of those size up to a certain number (if specifies). The advantages are now you are drastically increasing the delivery of your js and other assets but still bundled for opt.
Sokra (Tobias) wrote an article about this research if you are interested!!
https://medium.com/webpack/webpack-http-2-7083ec3f3ce6#.5ycapkafg https://medium.com/webpack/webpack-http-2-7083ec3f3ce6#.5yca...
Also to see an example of the API usage you can visit our core repo under examples where we explain the trade offs (compression vs cacheability):
https://github.com/webpack/webpack/tree/master/examples/http2-aggressive-splitting https://github.com/webpack/webpack/tree/master/examples/http...