目录不复制
parent
b048be1a56
commit
733e6ce941
|
@ -107,9 +107,11 @@ export default function compile(root = '', dist = '', conf = {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.ls(PUBLIC_DIR, true).forEach(it => {
|
fs.ls(PUBLIC_DIR, true).forEach(it => {
|
||||||
let name = it.slice(PUBLIC_DIR.length + 1)
|
if (fs.isfile(it)) {
|
||||||
console.log('正在复制静态文件 %s ...', name)
|
let name = it.slice(PUBLIC_DIR.length + 1)
|
||||||
fs.cp(it, join(dist, name))
|
console.log('正在复制静态文件 %s ...', name)
|
||||||
|
fs.cp(it, join(dist, name))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue