Analyzing Bundle Sizes
Webpack Bundle Analyzer is a webpack plugin which helps you visualize the size of your bundles with an interactive zoom-able tree-map.
npm install --save-dev webpack-bundle-analyzerconst {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer')module.exports = Object.assign({}, configuration, {
mode: 'production',
plugins: [
new BundleAnalyzerPlugin({
analyzerMode: 'static',
}),
],
})npm run buildLast updated