Skip to content

Commit

Permalink
Check if static folder exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Nov 10, 2016
1 parent d5230ac commit 9f370cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9f370cb

Please sign in to comment.