From 975e4683882669533c8158d0626936387daff03a Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 12 May 2017 23:19:55 +0430 Subject: [PATCH] app rebuild await for nuxt initialization --- bin/nuxt-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nuxt-dev b/bin/nuxt-dev index f6b3aace46..351a82a680 100755 --- a/bin/nuxt-dev +++ b/bin/nuxt-dev @@ -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