Is performance your main concern with your webpack setup? Are you worried that your bundle is too big?
Then this post is for you!
Go through these three steps to get a quick overview of what to do to optimize your bundle size. I have listed them with increasing difficulty so that you can start at the top and hopefully get a quick win and then you can work your way down.
Easy: Run webpack in production mode
Make sure you run webpack in production mode. To do that, you run webpack with the -p flag, like this:
This little flag does these two things to optimize your bundle size:
... read the whole story at blog.jakoblind.no.
- Enable minification using