Skip to content

Commit ffbc2d6

Browse files
authored
Update koa example to point to someone who knows what they're doing.
1 parent d990fe3 commit ffbc2d6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,7 @@ Use the [hapi-webpack-plugin](https://www.npmjs.com/package/hapi-webpack-plugin)
103103
104104
### Koa
105105
106-
```js
107-
var app = koa();
108-
109-
var hotMiddleware = require("webpack-hot-middleware")(compiler);
110-
app.use(function* (next) {
111-
yield hotMiddleware.bind(null, this.request, this.response);
112-
yield next;
113-
});
114-
```
106+
Use [koa-webpack-middleware](https://www.npmjs.com/package/koa-webpack-middleware), which wraps this module and makes it work with koa.
115107
116108
## Troubleshooting
117109

0 commit comments

Comments
 (0)