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);