From d891584743ba7c5823277916b5d8b54a2103a89e Mon Sep 17 00:00:00 2001 From: antoine jubin Date: Wed, 1 Sep 2021 14:10:57 +0200 Subject: [PATCH] feat(watch mode): toggle webpack development mode on watch --- lib/compiler/webpack-compiler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compiler/webpack-compiler.ts b/lib/compiler/webpack-compiler.ts index 59d403c73..4eadb2032 100644 --- a/lib/compiler/webpack-compiler.ts +++ b/lib/compiler/webpack-compiler.ts @@ -70,6 +70,7 @@ export class WebpackCompiler { : webpackConfigFactoryOrConfig(defaultOptions, webpack); const webpackConfiguration = { ...defaultOptions, + mode: watchMode ? 'development' : defaultOptions.mode, ...projectWebpackOptions, }; const compiler = webpack(webpackConfiguration);