react-app-rewire-webpack-bundle-analyzer

1.1.0 • Public • Published

react-app-rewire-webpack-bundle-analyzer

npm License

Add webpack-bundle-analyzer to react-app-rewired config.

Install

npm install --save-dev react-app-rewire-webpack-bundle-analyzer

Usage

const rewireWebpackBundleAnalyzer = require('react-app-rewire-webpack-bundle-analyzer')
 
module.exports = function override(config, env) {
  // ...
 
  if (env === 'production') {
    config = rewireWebpackBundleAnalyzer(config, env, {
      analyzerMode: 'static',
      reportFilename: 'report.html'
    })
  }
 
  return config
}

License

MIT © Bohdan Khodakivskyi

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    647
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    647
  • 1.0.1
    47
  • 1.0.0
    1

Package Sidebar

Install

npm i react-app-rewire-webpack-bundle-analyzer

Weekly Downloads

695

Version

1.1.0

License

MIT

Unpacked Size

3.92 kB

Total Files

6

Last publish

Collaborators

  • bohdan.kh