Skip to content

Commit

Permalink
docs(config): add contentBasePublicPath option (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
G100g authored Feb 11, 2020
1 parent 1f96f6c commit 4be2137
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 @@ -17,6 +17,7 @@ contributors:
- bhavya9107
- wizardofhogwarts
- jamesgeorge007
- g100g
---

[webpack-dev-server](https://github.com/webpack/webpack-dev-server) can be used to quickly develop an application. See the [development guide](/guides/development/) to get started.
Expand Down Expand Up @@ -283,6 +284,23 @@ Usage via the CLI
webpack-dev-server --content-base /path/to/content/dir
```

## `devServer.contentBasePublicPath`

`string`

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

__webpack.config.js__

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

## `devServer.disableHostCheck`

Expand Down

0 comments on commit 4be2137

Please sign in to comment.