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
*/
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(() => {

View File

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