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",