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