Skip to content

Commit

Permalink
docs(dev-server): add contentBasePublicPath option
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Luca committed Dec 4, 2019
1 parent 7cefed8 commit a50c6bf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,25 @@ webpack-dev-server --content-base /path/to/content/dir
```


## `devServer.contentBasePublicPath`

`string = '/'`

Tell the server at what URL to serve `devServer.contentBase`. If there was a file `assets/manifest.json`, it would be served at `/serve-content-base-at-this-url/manifest.json`

__webpack.config.js__

```javascript
module.exports = {
//...
devServer: {
contentBase: path.join(__dirname, 'assets'),
contentBasePublicPath: '/serve-content-base-at-this-url'
}
};
```


## `devServer.disableHostCheck`

`boolean`
Expand Down

0 comments on commit a50c6bf

Please sign in to comment.