mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Merge pull request #157 from Mirodil/patch-1
make it more compatible with other frameworks
This commit is contained in:
commit
e238a952e2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user