Merge pull request #157 from Mirodil/patch-1

make it more compatible with other frameworks
This commit is contained in:
Sébastien Chopin 2017-01-23 17:13:49 +01:00 committed by GitHub
commit e238a952e2

View File

@ -20,7 +20,7 @@ export function render (req, res) {
}
const self = this
const context = getContext(req, res)
co(function * () {
return co(function * () {
if (self.dev) {
// Call webpack middlewares only in development
yield self.webpackDevMiddleware(req, res)