mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 02:15:12 +00:00
client: fix webpack devServer port selection
This commit is contained in:
@@ -72,6 +72,7 @@ choosePort(HOST, DEFAULT_PORT)
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
port,
|
||||
},
|
||||
compiler,
|
||||
);
|
||||
@@ -81,10 +82,7 @@ choosePort(HOST, DEFAULT_PORT)
|
||||
});
|
||||
|
||||
// Launch WebpackDevServer.
|
||||
return devServer.start(port, HOST, (err) => {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
return devServer.start().then(() => {
|
||||
if (isInteractive) {
|
||||
clearConsole();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user