Skip to content

Commit e096567

Browse files
committed
docs: update
1 parent 8d72c86 commit e096567

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

examples/cli/compression/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ to roughly 30% of its original size before the files are sent to the browser.
66
To run this example, run this command in your console or terminal:
77

88
```console
9-
npm run webpack-dev-server -- --open --compress
9+
npm run webpack-dev-server -- --open-target --compress
1010
```
1111

1212
## What should happen

examples/cli/default/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
This example demonstrates how to use `webpack-dev-server`.
44

55
```console
6-
npm run webpack-dev-server -- --open
6+
npm run webpack-dev-server -- --open-target
77
```
88

99
To run your app using an alternative config, use:
1010

1111
```console
12-
npm run webpack-dev-server -- --open --config alternative.config.js
12+
npm run webpack-dev-server -- --open-target --config alternative.config.js
1313
```
1414

1515
## What Should Happen

examples/cli/history-api-fallback/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ support in `webpack-dev-server`, effectively asking the server to fallback to
55
`index.html` in the event that a requested resource cannot be found.
66

77
```shell
8-
npm run webpack-dev-server -- --open --history-api-fallback
8+
npm run webpack-dev-server -- --open-target --history-api-fallback
99
```
1010

1111
_Note: some URLs don't work by default. For example; if the url contains a dot.

examples/cli/hmr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ application is running, without a full reload of the page.
66
To run this example, run this command in your console or terminal:
77

88
```console
9-
npm run webpack-dev-server -- --open --hot
9+
npm run webpack-dev-server -- --open-target --hot
1010
```
1111

1212
## What Should Happen

examples/cli/host-and-port/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,39 @@ will run. The `host` and `port` options allow for that.
66
## IPv4
77

88
```console
9-
npm run webpack-dev-server -- --open --port 5000 --host 0.0.0.0
9+
npm run webpack-dev-server -- --open-target --port 5000 --host 0.0.0.0
1010
```
1111

1212
## IPv6
1313

1414
_This also works with IPv6_
1515

1616
```console
17-
npm run webpack-dev-server -- --open --port 5000 --host ::
17+
npm run webpack-dev-server -- --open-target --port 5000 --host ::
1818
```
1919

2020
## local-ip
2121

2222
Specifying `local-ip` as `host` will try to resolve the `host` option as your local `IPv4` address if available, if `IPv4` is not available it will try to resolve your local `IPv6` address.
2323

2424
```console
25-
npm run webpack-dev-server -- --open --port 5000 --host local-ip
25+
npm run webpack-dev-server -- --open-target --port 5000 --host local-ip
2626
```
2727

2828
## local-ipv4
2929

3030
Specifying `local-ipv4` as `host` will try to resolve the `host` option as your local `IPv4` address.
3131

3232
```console
33-
npm run webpack-dev-server -- --open --port 5000 --host local-ipv4
33+
npm run webpack-dev-server -- --open-target --port 5000 --host local-ipv4
3434
```
3535

3636
## local-ipv6
3737

3838
Specifying `local-ipv6` as `host` will try to resolve the `host` option as your local `IPv6` address.
3939

4040
```console
41-
npm run webpack-dev-server -- --open --port 5000 --host local-ipv6
41+
npm run webpack-dev-server -- --open-target --port 5000 --host local-ipv6
4242
```
4343

4444
## What Should Happen

examples/cli/https/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You may choose to wish to run `webpack-dev-server` on `https`.
77
Use HTTPS protocol.
88

99
```console
10-
npx webpack serve --open --https
10+
npx webpack serve --open-target --https
1111
```
1212

1313
## https options
@@ -21,7 +21,7 @@ Customize `https` configuration with the following options:
2121
- `--https-passphrase`: Passphrase for a pfx file.
2222

2323
```console
24-
npx webpack serve --open --https-key ./ssl/server.key --https-pfx ./ssl/server.pfx --https-cert ./ssl/server.crt --https-cacert ./ssl/ca.pem --https-passphrase webpack-dev-server
24+
npx webpack serve --open-target --https-key ./ssl/server.key --https-pfx ./ssl/server.pfx --https-cert ./ssl/server.crt --https-cacert ./ssl/ca.pem --https-passphrase webpack-dev-server
2525
```
2626

2727
## What Should Happen

examples/cli/multi-compiler/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
`webpack-dev-server` should be able to compile multiple webpack configs.
44

55
```shell
6-
npm run webpack-dev-server -- --open
6+
npm run webpack-dev-server -- --open-target
77
```
88

99
## What Should Happen

examples/cli/node-false/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CLI: Webpack `node` Option
22

33
```shell
4-
npm run webpack-dev-server -- --open
4+
npm run webpack-dev-server -- --open-target
55
```
66

77
## What should happen

examples/cli/overlay/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CLI: --client-overlay option
22

33
```shell
4-
npm run webpack-dev-server -- --open --client-overlay
4+
npm run webpack-dev-server -- --open-target --client-overlay
55
```
66

77
## What Should Happen

examples/cli/progress/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CLI: Progress Option
22

33
```shell
4-
npm run webpack-dev-server -- --open --client-progress
4+
npm run webpack-dev-server -- --open-target --client-progress
55
```
66

77
## What Should Happen

examples/cli/public/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CLI: Public Option
22

33
```console
4-
npm run webpack-dev-server -- --open --host 0.0.0.0 --public <insert local ip>:8080
4+
npm run webpack-dev-server -- --open-target --host 0.0.0.0 --public <insert local ip>:8080
55
```
66

77
_NOTE: replace `<insert local ip>` with your local IP Address._

examples/cli/watch-static/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Watching a single directory
44

55
```console
6-
npm run webpack-dev-server -- --static assets --open
6+
npm run webpack-dev-server -- --static assets --open-target
77
```
88

99
### What Should Happen
@@ -26,13 +26,13 @@ module.exports = {
2626
```
2727

2828
```console
29-
npm run webpack-dev-server -- --open
29+
npm run webpack-dev-server -- --open-target
3030
```
3131

3232
or via CLI only:
3333

3434
```console
35-
npm run webpack-dev-server -- --static assets --static css --open
35+
npm run webpack-dev-server -- --static assets --static css --open-target
3636
```
3737

3838
### What Should Happen

0 commit comments

Comments
 (0)