Skip to content

Commit

Permalink
docs(devServer): add sockPath docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trescenzi committed Jan 30, 2019
1 parent bd150aa commit 8e950cc
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 @@ -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.
Expand Down

0 comments on commit 8e950cc

Please sign in to comment.