Skip to content

Commit a50c6bf

Browse files
author
Andrew Luca
committed
docs(dev-server): add contentBasePublicPath option
1 parent 7cefed8 commit a50c6bf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/content/configuration/dev-server.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,25 @@ webpack-dev-server --content-base /path/to/content/dir
279279
```
280280

281281

282+
## `devServer.contentBasePublicPath`
283+
284+
`string = '/'`
285+
286+
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`
287+
288+
__webpack.config.js__
289+
290+
```javascript
291+
module.exports = {
292+
//...
293+
devServer: {
294+
contentBase: path.join(__dirname, 'assets'),
295+
contentBasePublicPath: '/serve-content-base-at-this-url'
296+
}
297+
};
298+
```
299+
300+
282301
## `devServer.disableHostCheck`
283302

284303
`boolean`

0 commit comments

Comments
 (0)