Skip to content

Commit 4f5bab1

Browse files
authored
docs: improve examples (#3672)
1 parent f2d87fb commit 4f5bab1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+480
-170
lines changed

examples/cli/bonjour/README.md renamed to examples/bonjour/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33
The Bonjour capability broadcasts server information via ZeroConf when the Server
44
is started.
55

6-
To run this example, run this command in your console or terminal:
6+
**webpack.config.js**
7+
8+
```js
9+
module.exports = {
10+
// ...
11+
devServer: {
12+
bonjour: true,
13+
},
14+
};
15+
```
16+
17+
Usage via CLI:
718

819
```console
920
npx webpack serve --bonjour
File renamed without changes.

examples/cli/hmr/webpack.config.js renamed to examples/bonjour/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// our setup function adds behind-the-scenes bits to the config that all of our
44
// examples need
5-
const { setup } = require("../../util");
5+
const { setup } = require("../util");
66

77
module.exports = setup({
88
context: __dirname,

examples/cli/https/README.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/cli/https/webpack.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/cli/open-target/README.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/cli/progress/webpack.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/cli/web-socket-server/webpack.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

examples/cli/web-socket-url-cli/README.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/cli/web-socket-url-cli/app.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)