Skip to content

Commit 297a649

Browse files
authored
docs: update bonjour example (#3262)
1 parent 5dd2bda commit 297a649

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

examples/cli/bonjour/README.md

+27
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,30 @@ npm run webpack-dev-server -- --bonjour
1313

1414
A Zeroconf broadcast should occur, containing data with a type of `http` and a
1515
subtype of `webpack`.
16+
17+
# Bonjour options
18+
19+
Allows options from bonjour for more [configuration](https://github.com/watson/bonjour#initializing):
20+
21+
```js
22+
// webpack.config.js
23+
module.exports = {
24+
/* ... */
25+
devServer: {
26+
bonjour: {
27+
name: 'webpack-dev-server',
28+
type: 'https',
29+
subtype: 'webpack',
30+
},
31+
},
32+
};
33+
```
34+
35+
```console
36+
npm run webpack-dev-server -- --config webpack.config.js
37+
```
38+
39+
## What Should Happen
40+
41+
A Zeroconf broadcast should occur, containing data with a type of `https` and a
42+
subtype of `webpack`.

0 commit comments

Comments
 (0)