Install Analyzer
npm i -D webpack-bundle-analyzer
Run Prod build command with --stats-jso argument.
This will create stats.json.
then run analyzer command to analyze the result.
webpack-bundle-analyzer ./dist/stats.json
If any issue running command then add following to your package.json and run npm run bundle-report.
npm i -D webpack-bundle-analyzer
Run Prod build command with --stats-jso argument.
This will create stats.json.
then run analyzer command to analyze the result.
webpack-bundle-analyzer ./dist/stats.json
If any issue running command then add following to your package.json and run npm run bundle-report.
"bundle-report": "webpack-bundle-analyzer dist/stats.json"
No comments:
Post a Comment