Skip to content

Commit

Permalink
Revert "fixes webpack#1086: promise configs fix and example"
Browse files Browse the repository at this point in the history
This reverts commit 8f897c5.
  • Loading branch information
smQaaa committed Jul 7, 2019
1 parent d2fef58 commit 29b36c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/webpack-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,15 +342,15 @@ function processOptions(webpackOptions) {
options.port = argv.port === DEFAULT_PORT ? defaultTo(options.port, argv.port) : defaultTo(argv.port, options.port);

if (options.port != null) {
startDevServer(webpackOptions, options);
startDevServer(wpOpt, options);
return;
}

portfinder.basePort = DEFAULT_PORT;
portfinder.getPort((err, port) => {
if (err) throw err;
options.port = port;
startDevServer(webpackOptions, options);
startDevServer(wpOpt, options);
});
}

Expand Down

0 comments on commit 29b36c2

Please sign in to comment.