Quantcast
Channel: Different chunks for production and development - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by piernik for Different chunks for production and development

I think I know the issue. I've added maxInitialRequests: 10 to optimization flag and now it's splitting almost the same.optimization: { splitChunks: { chunks: "all", maxInitialRequests: 10, }, },

View Article



Image may be NSFW.
Clik here to view.

Different chunks for production and development

I have webpack@4.30.0 project.In development mode webpack --mode=development all files are 7MB.But when I switch to production mode webpack --mode=production they are 27MB :/ Webpack is splitting files...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>