Skip to content

Commit

Permalink
feat(serve): pass socket or port if no socket
Browse files Browse the repository at this point in the history
  • Loading branch information
knagaitsev committed Sep 22, 2019
1 parent 18636c3 commit 4668ea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/serve/startDevServer.ts
Expand Up @@ -12,7 +12,9 @@ import * as Server from "webpack-dev-server/lib/Server";
*/
export default function startDevServer(compiler, options, onListening): void {
const server = new Server(compiler, options);
server.listen(options.port, options.host, (err): void => {
// Once the dev server has better socket handling within the API listen method,
// this will work better
server.listen(options.socket || options.port, options.host, (err): void => {
if (err) {
throw err;
}
Expand Down

0 comments on commit 4668ea7

Please sign in to comment.