From c57982e606ecafbc7f4a5cfd70726929dbe28f9d Mon Sep 17 00:00:00 2001 From: NaNdreas Date: Wed, 7 Nov 2018 21:04:11 +0100 Subject: [PATCH] set default mode to development --- bin/webpack-dev-server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/webpack-dev-server.js b/bin/webpack-dev-server.js index d58daf2954..b491cca980 100755 --- a/bin/webpack-dev-server.js +++ b/bin/webpack-dev-server.js @@ -113,6 +113,9 @@ function processOptions (config) { ? config[0] : config; + // This updates both config and firstWpOpt + firstWpOpt.mode = defaultTo(firstWpOpt.mode, 'development'); + const options = config.devServer || firstWpOpt.devServer || {}; if (argv.bonjour) {