目录不复制

pull/1/head
yutent 2023-02-19 20:34:15 +08:00
parent b048be1a56
commit 733e6ce941
1 changed files with 5 additions and 3 deletions

View File

@ -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))
}
}) })
} }