Use Webpack Bundle Analyzer on a create-react-app application without ejecting
[![npm][npm]][npm-url]
[![node][node]][node-url]
[![downloads][downloads]][downloads-url]
This package allows to use webpack-bundle-analyzer with create-react-app, without having to eject the react application.
It's an alternative to the official source-map-explorer.
``bash`NPM
npm install --save-dev cra-bundle-analyzerYarn
yarn add -D cra-bundle-analyzer
`bash`
npx cra-bundle-analyzer
This command will generate the webpack-bundle-analyzer report in build/report.html
`static
-r, --reportFilename mode. (default: report.html)``
- Github Issue #6904: --stats flag is gone in v3?
- Github Issue #3518: webpack-bundle-analyzer without ejecting.
- Medium @romanonthego: webpack-bundle-analyzer for create-react-app
[npm]: https://img.shields.io/npm/v/cra-bundle-analyzer.svg
[npm-url]: https://npmjs.com/package/cra-bundle-analyzer
[node]: https://img.shields.io/node/v/cra-bundle-analyzer.svg
[node-url]: https://nodejs.org
[deps]: https://david-dm.org/webpack-contrib/cra-bundle-analyzer.svg
[deps-url]: https://david-dm.org/webpack-contrib/cra-bundle-analyzer
[tests]: http://img.shields.io/travis/webpack-contrib/cra-bundle-analyzer.svg
[tests-url]: https://travis-ci.org/webpack-contrib/cra-bundle-analyzer
[downloads]: https://img.shields.io/npm/dt/cra-bundle-analyzer.svg
[downloads-url]: https://npmjs.com/package/cra-bundle-analyzer