react-app-rewire-webpack-bundle-analyzer
v1.1.0
Published
Add webpack-bundle-analyzer to a react-app-rewired config.
Downloads
3,229
Maintainers
Readme
react-app-rewire-webpack-bundle-analyzer
Add
webpack-bundle-analyzer
toreact-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