Skip to content

Commit 86d4138

Browse files
authored
docs(devServer): clarify devServer "open" option description
Added information that you can also use browser name in the config file.
1 parent 98aba95 commit 86d4138

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/content/configuration/dev-server.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,19 @@ When `open` is enabled, the dev server will open the browser.
458458
```js
459459
open: true
460460
```
461+
If no browser is provided (as shown above), your default browser will be used. To specify a different browser, just pass its name instead of boolean:
462+
463+
```js
464+
open: 'Google Chrome'
465+
```
461466

462467
Usage via the CLI
463468

464469
```bash
465470
webpack-dev-server --open
466471
```
467472

468-
If no browser is provided (as shown above), your default browser will be used. To specify a different browser, just pass its name:
473+
Or with specified browser:
469474

470475
```bash
471476
webpack-dev-server --open 'Google Chrome'

0 commit comments

Comments
 (0)