Webpack-dev-server: How to manually shut down server?

Created on 4 Mar 2015  路  4Comments  路  Source: webpack/webpack-dev-server

In my gulp task I run the webpack dev server before running any jasmine based end-to-end tests.

But there is no function to shut down the webpack dev server once the tests have ended. How can I do that?

(And by the way, how can I disable watching for this scenario? Such an option seems to be missing)

Most helpful comment

a shutdown port or shutdown via REST would be helpful

All 4 comments

server.close()

thanks but sorry, i picked something else ...

@binarykitchen could you please share your solution?
I need to stop the server (and selenium) from my npm script. So using server.close()will not work for me either.

a shutdown port or shutdown via REST would be helpful

Was this page helpful?
0 / 5 - 0 ratings