Skip to content

Commit f617f6e

Browse files
committed
fix: test env use production, scan code
1 parent 352ec6f commit f617f6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Config {
147147
this.dev = true;
148148
this.mergeConfig(defaultConfig.devConfig);
149149
}
150-
this.webpackConfig.mode = this.prod ? 'production' : 'development';
150+
this.webpackConfig.mode = this.test || this.prod ? 'production' : 'development';
151151
}
152152

153153
mergeConfig(config, override = false) {

0 commit comments

Comments
 (0)