Created
May 16, 2018 13:28
-
-
Save vire/03eb953882a2c10f2b85a7635c500102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.env.NODE_ENV = 'production' | |
let BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin | |
const webpackConfigProd = require('react-scripts/config/webpack.config.prod') | |
webpackConfigProd.plugins.push( | |
new BundleAnalyzerPlugin({ | |
analyzerMode: 'static', | |
reportFilename: 'report.html' | |
}) | |
) | |
require('react-scripts/scripts/build') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment