From 5b8cb0f4641db12ae8be605131c9854c6b996312 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 18 May 2017 13:17:39 +0430 Subject: [PATCH] [build] add missing promise.all --- lib/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build.js b/lib/build.js index cfff63893a..2439a30aee 100644 --- a/lib/build.js +++ b/lib/build.js @@ -259,7 +259,7 @@ async function generateRoutesAndFiles () { })) // Interpret and move template files to .nuxt/ - return templatesFiles.map(async ({src, dst, options, custom}) => { + return Promise.all(templatesFiles.map(async ({src, dst, options, custom}) => { // Add template to watchers this.options.build.watch.push(src) // Render template to dst @@ -284,7 +284,7 @@ async function generateRoutesAndFiles () { // Fix webpack loop (https://github.com/webpack/watchpack/issues/25#issuecomment-287789288) const dateFS = Date.now() / 1000 - 30 return utimes(path, dateFS, dateFS) - }) + })) } function createRoutes (files, srcDir) {