Skip to content

Commit bd13289

Browse files
committed
Set prod env when analyzing bundle
1 parent 057033a commit bd13289

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/analyzeBundle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import config from '../webpack.config.prod';
44

55
config.plugins.push(new BundleAnalyzerPlugin());
66

7+
process.env.NODE_ENV = 'production';
8+
79
const compiler = webpack(config);
810

911
compiler.run((error, stats) => {

0 commit comments

Comments
 (0)