Skip to content

Commit

Permalink
docs: update bonjour example (#3262)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 authored May 7, 2021
1 parent 5dd2bda commit 297a649
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/cli/bonjour/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,30 @@ npm run webpack-dev-server -- --bonjour

A Zeroconf broadcast should occur, containing data with a type of `http` and a
subtype of `webpack`.

# Bonjour options

Allows options from bonjour for more [configuration](https://github.com/watson/bonjour#initializing):

```js
// webpack.config.js
module.exports = {
/* ... */
devServer: {
bonjour: {
name: 'webpack-dev-server',
type: 'https',
subtype: 'webpack',
},
},
};
```

```console
npm run webpack-dev-server -- --config webpack.config.js
```

## What Should Happen

A Zeroconf broadcast should occur, containing data with a type of `https` and a
subtype of `webpack`.

0 comments on commit 297a649

Please sign in to comment.