Skip to content

docs(DevServer): expand on devServer.openPage usage #3306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/content/configuration/dev-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contributors:
- Loonride
- dmohns
- EslamHiko
- digitaljohn
---

[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 @@ -804,7 +805,7 @@ T> The browser application name is platform dependent. Don't hard code it in reu

## `devServer.openPage`

`string`
`string` `[string]`

Specify a page to navigate to when opening the browser.

Expand All @@ -825,6 +826,25 @@ Usage via the CLI
webpack-dev-server --open-page "/different/page"
```

If you wish to specify multiple pages to open in the browser.

__webpack.config.js__

```javascript
module.exports = {
//...
devServer: {
openPage: ['/different/page1', '/different/page2']
}
};
```

Usage via the CLI

```bash
webpack-dev-server --open-page "/different/page1,/different/page2"
```


## `devServer.overlay`

Expand Down