Skip to content

Commit 7ffe2a5

Browse files
trescenziEugeneHlushko
authored andcommitted
docs(devServer): add sockPath docs (#2791)
1 parent 3b8ac83 commit 7ffe2a5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/content/configuration/dev-server.md

+18
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,24 @@ webpack-dev-server --socket socket
10841084
```
10851085

10861086

1087+
## `devServer.sockPath`
1088+
1089+
`string: '/sockjs-node'`
1090+
1091+
The path at which to connect to the reloading socket.
1092+
1093+
__webpack.config.js__
1094+
1095+
```javascript
1096+
module.exports = {
1097+
//...
1098+
devServer: {
1099+
sockPath: '/socket',
1100+
}
1101+
};
1102+
```
1103+
1104+
10871105
## `devServer.staticOptions`
10881106

10891107
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)