3 ms·
One big question I have from Webpack is this: In age of HTTP/2 packing is not recommended anymore but I love so many features of Webpack, are you guys going to
by msoad 10y ago
One big question I have from Webpack is this:
In age of HTTP/2 packing is not recommended anymore but I love so many features of Webpack, are you guys going to adopt to HTTP/2 paradigms?
Great work, thanks!
- thelarkinn 10y agoWe 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...
- deleted 10y ago[deleted]