Skip to content

Commit a0ae9a8

Browse files
committed
docs: update port example
1 parent 26296c9 commit a0ae9a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ npx webpack serve --open-target --port 5000 --host local-ipv6
5151

5252
## port
5353

54+
### specific port
55+
56+
Tell the server to connect to a specific port with the following:
57+
58+
```console
59+
npx webpack serve --open-target --port 9000
60+
```
61+
62+
#### What Should Happen
63+
64+
1. The script should open `http://localhost:9000/` in your default browser.
65+
2. You should see the text on the page itself change to read `Success!`.
66+
5467
### auto
5568

5669
Specifying `auto` as `port` will try to connect the server to the default port `8080` and if not available it will automatically search for another free port.

0 commit comments

Comments
 (0)