Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I was suggesting bundle analyzer to get the correct size of each module included.
- Here is the link -
- https://github.com/th0r/webpack-bundle-analyzer
- Here is how to use this in Laravel mix
- npm install --save-dev webpack-bundle-analyzer
- Then in your webpack.mix.js
- var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
- mix.webpackConfig({
- plugins: [
- new BundleAnalyzerPlugin(),
- ]
- });
- Then run
- npm run prod
- Wait for http://127.0.0.1:8888/ to be ready for your browser.
- You can remove this package after using.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement