mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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
|
** 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(() => {
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user