app rebuild await for nuxt initialization

This commit is contained in:
Pooya Parsa 2017-05-12 23:19:55 +04:30
parent a6f1ce7465
commit 975e468388

View File

@ -69,7 +69,7 @@ function listenOnConfigChanges (nuxt, server) {
.then(() => {
nuxt.renderer = null
debug('Rebuilding the app...')
return new Nuxt(options).build()
return (new Nuxt(options)).then(nuxt => nuxt.build())
})
.then((nuxt) => {
server.nuxt = nuxt