Install webpack-bundle-analyzer.
npm install --save-dev webpack-bundle-analyzer
Edit webpack config file.
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPluginmodule.exports = { ... plugins: [ ... new BundleAnalyzerPlugin() ] ...};
Output is generated at http://127.0.0.1:8888
as a graph to share breakdown of file size for each packages.