mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
Check if static folder exists
This commit is contained in:
parent
d5230accaf
commit
9f370cb97c
@ -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(() => {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user