Skip to content

CodeCoupler Webpack Analyse Bundle (from Version 3.7 possible)

1
2
npm run build:dev -- --stats stats.json
npx webpack-bundle-analyzer stats.json

Or

1
2
npm run build -- --devtool source-map
npx source-map-explorer dist/YOUR_BUNDLE_NAME.js dist/YOUR_BUNDLE_NAME.js.map

If source-map-explorer do not open a browser:

1
2
3
npm run build -- --devtool source-map
npx source-map-explorer dist/YOUR_BUNDLE_NAME.js dist/YOUR_BUNDLE_NAME.js.map --html stats.html
xdg-open stats.html