Skip to content

Commit 8e950cc

Browse files
committed
docs(devServer): add sockPath docs
[Related PR](webpack/webpack-dev-server#1553)
1 parent bd150aa commit 8e950cc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/content/configuration/dev-server.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,24 @@ webpack-dev-server --socket socket
10881088
```
10891089

10901090

1091+
## `devServer.sockPath`
1092+
1093+
`string`
1094+
1095+
The path at which to connect to the reloading socket. Defaults to `/sockjs-node`.
1096+
1097+
__webpack.config.js__
1098+
1099+
```javascript
1100+
module.exports = {
1101+
//...
1102+
devServer: {
1103+
sockPath: '/socket',
1104+
}
1105+
};
1106+
```
1107+
1108+
10911109
## `devServer.staticOptions`
10921110

10931111
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.

0 commit comments

Comments
 (0)