Skip to content

Commit

Permalink
Merge pull request #1319 from ajubin/master
Browse files Browse the repository at this point in the history
feat(watch mode): toggle webpack development mode on watch
  • Loading branch information
kamilmysliwiec committed Sep 27, 2021
2 parents d35d864 + d891584 commit a350000
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 a350000

Please sign in to comment.