Skip to content

Commit

Permalink
docs: update overlay and progress example (#3887)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored Sep 26, 2021
1 parent ccb6f76 commit 2ea510c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/client/overlay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Usage via CLI:
npx webpack serve --open --client-overlay
```

To disable:

```shell
npx webpack serve --open --no-client-overlay
```

## What Should Happen

1. The script should open `http://localhost:8080/` in your default browser.
Expand Down
5 changes: 5 additions & 0 deletions examples/client/overlay/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ module.exports = setup({
context: __dirname,
// create error for overlay
entry: "./invalid.js",
devServer: {
client: {
overlay: true,
},
},
});
6 changes: 6 additions & 0 deletions examples/client/progress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ Usage via CLI:
npx webpack serve --open --client-progress
```

To disable:

```shell
npx webpack serve --open --no-client-progress
```

## What Should Happen

1. The script should open `http://localhost:8080/` in your default browser.
Expand Down
5 changes: 5 additions & 0 deletions examples/client/progress/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ const { setup } = require("../../util");
module.exports = setup({
context: __dirname,
entry: "./app.js",
devServer: {
client: {
progress: true,
},
},
});

0 comments on commit 2ea510c

Please sign in to comment.