Skip to content

Commit

Permalink
feat(watch mode): toggle webpack development mode on watch
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine jubin committed Sep 1, 2021
1 parent 770a9e4 commit d891584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compiler/webpack-compiler.ts
Expand Up @@ -70,6 +70,7 @@ export class WebpackCompiler {
: webpackConfigFactoryOrConfig(defaultOptions, webpack);
const webpackConfiguration = {
...defaultOptions,
mode: watchMode ? 'development' : defaultOptions.mode,
...projectWebpackOptions,
};
const compiler = webpack(webpackConfiguration);
Expand Down

0 comments on commit d891584

Please sign in to comment.