cra-bundle-analyzer

Use Webpack Bundle Analyzer on a create-react-app application without ejecting

Usage no npm install needed!

<script type="module">
  import craBundleAnalyzer from 'https://cdn.skypack.dev/cra-bundle-analyzer';
</script>

README

npm node downloads

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.

Installation

# NPM
npm install --save-dev cra-bundle-analyzer
# Yarn
yarn add -D cra-bundle-analyzer

Usage

npx cra-bundle-analyzer

This command will generate the webpack-bundle-analyzer report in build/report.html

Options

  -r, --reportFilename <file>         Path to bundle report file that will be generated in `static` mode. (default: report.html)

References