From 0dd867cdec8806c2e76161fd824609ada563a7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 14 Dec 2016 15:30:44 +0100 Subject: [PATCH] Fix rebuild when nuxt.config.js changed --- bin/nuxt-dev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/nuxt-dev b/bin/nuxt-dev index faa4f6712f..de6b5af1dd 100755 --- a/bin/nuxt-dev +++ b/bin/nuxt-dev @@ -37,7 +37,7 @@ nuxt.build() function listenOnConfigChanges (nuxt, server) { // Listen on nuxt.config.js changes var build = _.debounce(() => { - debug('[nuxt.config.js] changed, rebuilding the app...') + debug('[nuxt.config.js] changed') delete require.cache[nuxtConfigFile] var options = {} if (fs.existsSync(nuxtConfigFile)) { @@ -50,6 +50,8 @@ function listenOnConfigChanges (nuxt, server) { options.rootDir = rootDir nuxt.close() .then(() => { + nuxt.renderer = null + debug('Rebuilding the app...') return new Nuxt(options).build() }) .then((nuxt) => {