diff --git a/webpack.config.js b/webpack.config.js index ee18a50..5c5642e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -63,7 +63,6 @@ module.exports = (env, argv) => { // show a progress bar new WebpackBar(), // create a report.html for bundle size - new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false }), // extract css to css files isEnvProduction && new MiniCssExtractPlugin({ @@ -76,6 +75,11 @@ module.exports = (env, argv) => { cssProcessorOptions: { map: { inline: false, annotation: true } } + }), + isEnvDevelopment && + new BundleAnalyzerPlugin({ + analyzerMode: 'static', + openAnalyzer: false }) // hot reload not working right now // isEnvDevelopment &&