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

Commit b285d82

Browse files
authored
Merge pull request #57 from sudo-suhas/docs_hot_mw_quiet
Use recommended way to turn off webpack-hot-middleware errors
2 parents 3c46303 + a56f05e commit b285d82

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)