Nutrias Punching Marmots

    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

    Install

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

    DownloadsWeekly Downloads

    2,623

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.92 kB

    Total Files

    6

    Last publish

    Collaborators

    • bohdan.kh