Skip to content

Commit

Permalink
docs(devServer): add sockPath docs (#2791)
Browse files Browse the repository at this point in the history
  • Loading branch information
trescenzi authored and EugeneHlushko committed Mar 25, 2019
1 parent 3b8ac83 commit 7ffe2a5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,24 @@ webpack-dev-server --socket socket
```


## `devServer.sockPath`

`string: '/sockjs-node'`

The path at which to connect to the reloading socket.

__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.
Expand Down

0 comments on commit 7ffe2a5

Please sign in to comment.