From 9f370cb97c98ff40d4ed5c871147f3c441883b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 10 Nov 2016 15:09:10 +0100 Subject: [PATCH] Check if static folder exists --- lib/generate.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/generate.js b/lib/generate.js index a08ccea8a359..c0088664c00e 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -36,10 +36,10 @@ module.exports = function () { /* ** Copy static and built files */ - yield [ - copy(srcStaticPath, distPath), - copy(srcBuiltPath, distNuxtPath) - ] + if (fs.existsSync(srcStaticPath)) { + yield copy(srcStaticPath, distPath) + } + yield copy(srcBuiltPath, distNuxtPath) debug('Static & build files copied') }) .then(() => { diff --git a/package.json b/package.json index 5185f2267eb4..2dead94813a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt", - "version": "0.3.2", + "version": "0.3.3", "description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)", "main": "index.js", "license": "MIT",