4 ms·
Hey, There are a bunch of ways to find out what makes up a webpack bundle (and by looking at that you might be able to find code which is not used by your app o
by achimw 9y ago
Hey,
There are a bunch of ways to find out what makes up a webpack bundle (and by looking at that you might be able to find code which is not used by your app or which could be replaced by a smaller dependency). Basically, webpack can give you the stats via:
webpack --profile --json > webpack-stats.json
Based on that, other tools can help you analyse the bundle, ie:
https://webpack.github.io/analyse/ https://webpack.github.io/analyse/
Have a look at this post explaining the details:
https://medium.com/@joeclever/three-simple-ways-to-inspect-a-webpack-bundle-7f6a8fe7195d https://medium.com/@joeclever/three-simple-ways-to-inspect-a...
- jamespetercook 9y agoAwesome, thanks mate :)