Skip to content

Commit 358225b

Browse files
author
Andrew Luca
authored
docs(config): Add contentBasePublicPath option (#3291)
1 parent 4be2137 commit 358225b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/configuration/dev-server.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,12 @@ Usage via the CLI
284284
webpack-dev-server --content-base /path/to/content/dir
285285
```
286286

287+
287288
## `devServer.contentBasePublicPath`
288289

289-
`string`
290+
`string = '/'`
290291

291-
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`
292+
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/manifest.json`
292293

293294
__webpack.config.js__
294295

@@ -302,6 +303,7 @@ module.exports = {
302303
};
303304
```
304305

306+
305307
## `devServer.disableHostCheck`
306308

307309
`boolean`

0 commit comments

Comments
 (0)