Check if static folder exists

This commit is contained in:
Sébastien Chopin 2016-11-10 15:09:10 +01:00
parent d5230accaf
commit 9f370cb97c
2 changed files with 5 additions and 5 deletions

View File

@ -36,10 +36,10 @@ module.exports = function () {
/* /*
** Copy static and built files ** Copy static and built files
*/ */
yield [ if (fs.existsSync(srcStaticPath)) {
copy(srcStaticPath, distPath), yield copy(srcStaticPath, distPath)
copy(srcBuiltPath, distNuxtPath) }
] yield copy(srcBuiltPath, distNuxtPath)
debug('Static & build files copied') debug('Static & build files copied')
}) })
.then(() => { .then(() => {

View File

@ -1,6 +1,6 @@
{ {
"name": "nuxt", "name": "nuxt",
"version": "0.3.2", "version": "0.3.3",
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)", "description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",