Skip to content

Commit

Permalink
Update koa example to point to someone who knows what they're doing.
Browse files Browse the repository at this point in the history
  • Loading branch information
glenjamin authored Jul 19, 2016
1 parent d990fe3 commit ffbc2d6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,7 @@ Use the [hapi-webpack-plugin](https://www.npmjs.com/package/hapi-webpack-plugin)
### Koa
```js
var app = koa();
var hotMiddleware = require("webpack-hot-middleware")(compiler);
app.use(function* (next) {
yield hotMiddleware.bind(null, this.request, this.response);
yield next;
});
```
Use [koa-webpack-middleware](https://www.npmjs.com/package/koa-webpack-middleware), which wraps this module and makes it work with koa.
## Troubleshooting
Expand Down

0 comments on commit ffbc2d6

Please sign in to comment.