Skip to content

Commit d10acd7

Browse files
committed
fix: don't override --env.production and --env.verbose when provided from user
1 parent 4ea2cf4 commit d10acd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/services/webpack/webpack-compiler-service.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
173173
appResourcesPath && { appResourcesPath },
174174
);
175175

176-
envData.verbose = this.$logger.isVerbose();
177-
envData.production = prepareData.release;
176+
envData.verbose = envData.verbose || this.$logger.isVerbose();
177+
envData.production = envData.production || prepareData.release;
178+
178179
if (prepareData.env && (prepareData.env.sourceMap === false || prepareData.env.sourceMap === 'false')) {
179180
delete envData.sourceMap;
180181
} else if (!prepareData.release) {

0 commit comments

Comments
 (0)