Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default mode to development #1562

Closed
wants to merge 7 commits into from
3 changes: 3 additions & 0 deletions bin/webpack-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down