Skip to content

Commit 4668ea7

Browse files
committed
feat(serve): pass socket or port if no socket
1 parent 18636c3 commit 4668ea7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/serve/startDevServer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ import * as Server from "webpack-dev-server/lib/Server";
1212
*/
1313
export default function startDevServer(compiler, options, onListening): void {
1414
const server = new Server(compiler, options);
15-
server.listen(options.port, options.host, (err): void => {
15+
// Once the dev server has better socket handling within the API listen method,
16+
// this will work better
17+
server.listen(options.socket || options.port, options.host, (err): void => {
1618
if (err) {
1719
throw err;
1820
}

0 commit comments

Comments
 (0)