Created
May 10, 2018 14:21
-
-
Save rrichardsonv/297149f8987f0e8ec3391e9a5dbb73e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // npm install --save-dev webpack-bundle-analyzer | |
| process.env.NODE_ENV = "production" | |
| var 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