From 8e950ccad0858cbdc38febd752c972e6e866011b Mon Sep 17 00:00:00 2001 From: Thomas Crescenzi Date: Wed, 30 Jan 2019 12:44:31 -0500 Subject: [PATCH] docs(devServer): add sockPath docs [Related PR](https://github.com/webpack/webpack-dev-server/pull/1553) --- src/content/configuration/dev-server.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/content/configuration/dev-server.md b/src/content/configuration/dev-server.md index 30c8d00f1b70..159813124f13 100644 --- a/src/content/configuration/dev-server.md +++ b/src/content/configuration/dev-server.md @@ -1088,6 +1088,24 @@ webpack-dev-server --socket socket ``` +## `devServer.sockPath` + +`string` + +The path at which to connect to the reloading socket. Defaults to `/sockjs-node`. + +__webpack.config.js__ + +```javascript +module.exports = { + //... + devServer: { + sockPath: '/socket', + } +}; +``` + + ## `devServer.staticOptions` It is possible to configure advanced options for serving static files from `contentBase`. See the [Express documentation](http://expressjs.com/en/4x/api.html#express.static) for the possible options.