Skip to content

Commit 2ea510c

Browse files
authored
docs: update overlay and progress example (#3887)
1 parent ccb6f76 commit 2ea510c

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

examples/client/overlay/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Usage via CLI:
1919
npx webpack serve --open --client-overlay
2020
```
2121

22+
To disable:
23+
24+
```shell
25+
npx webpack serve --open --no-client-overlay
26+
```
27+
2228
## What Should Happen
2329

2430
1. The script should open `http://localhost:8080/` in your default browser.

examples/client/overlay/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@ module.exports = setup({
88
context: __dirname,
99
// create error for overlay
1010
entry: "./invalid.js",
11+
devServer: {
12+
client: {
13+
overlay: true,
14+
},
15+
},
1116
});

examples/client/progress/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Usage via CLI:
1919
npx webpack serve --open --client-progress
2020
```
2121

22+
To disable:
23+
24+
```shell
25+
npx webpack serve --open --no-client-progress
26+
```
27+
2228
## What Should Happen
2329

2430
1. The script should open `http://localhost:8080/` in your default browser.

examples/client/progress/webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ const { setup } = require("../../util");
77
module.exports = setup({
88
context: __dirname,
99
entry: "./app.js",
10+
devServer: {
11+
client: {
12+
progress: true,
13+
},
14+
},
1015
});

0 commit comments

Comments
 (0)