Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit a56f05e

Browse files
committed
docs(readme): Use false to turn off erros in webpack-hot-middleware
1 parent 3a414ae commit a56f05e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ If you use the webpack-dev-server, there is a setting in webpack's ```devServer`
6161
}
6262
```
6363

64-
If you use webpack-hot-middleware, that is done by setting the log option to a no-op. You can do something sort of like this, depending upon your setup:
64+
If you use webpack-hot-middleware, that is done by setting the log option to `false`. You can do something sort of like this, depending upon your setup:
6565

6666
```javascript
6767
app.use(require('webpack-hot-middleware')(compiler, {
68-
log: () => {}
68+
log: false
6969
}));
7070
```
7171

0 commit comments

Comments
 (0)