Skip to content

Commit 8f897c5

Browse files
committed
fixes #1086: promise configs fix and example
1 parent 35295b7 commit 8f897c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/webpack-dev-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,15 @@ function processOptions(webpackOptions) {
344344
options.port = argv.port === DEFAULT_PORT ? defaultTo(options.port, argv.port) : defaultTo(argv.port, options.port);
345345

346346
if (options.port != null) {
347-
startDevServer(wpOpt, options);
347+
startDevServer(webpackOptions, options);
348348
return;
349349
}
350350

351351
portfinder.basePort = DEFAULT_PORT;
352352
portfinder.getPort((err, port) => {
353353
if (err) throw err;
354354
options.port = port;
355-
startDevServer(wpOpt, options);
355+
startDevServer(webpackOptions, options);
356356
});
357357
}
358358

0 commit comments

Comments
 (0)