mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +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 self = this
|
||||||
const context = getContext(req, res)
|
const context = getContext(req, res)
|
||||||
co(function * () {
|
return co(function * () {
|
||||||
if (self.dev) {
|
if (self.dev) {
|
||||||
// Call webpack middlewares only in development
|
// Call webpack middlewares only in development
|
||||||
yield self.webpackDevMiddleware(req, res)
|
yield self.webpackDevMiddleware(req, res)
|
||||||
|
Loading…
Reference in New Issue
Block a user