webpack bundle analyzer code example
Example 1: webpack-bundle-analyzer no stats.json file
npm run build -- --statsJson=true
// Output json file name has been renamed to stats-es2015.json
Example 2: webpack-bundle-analyzer react
"report": "npm run build --withReport true"