调整开发模式

master
yutent 2023-03-15 11:20:53 +08:00
parent ad1bf86ff3
commit d49e92bf63
2 changed files with 30 additions and 33 deletions

View File

@ -27,7 +27,6 @@ export default function compile(root = '', isProd = false, es) {
chokidar
.watch(SOURCE_DIR)
.on('all', (act, filePath) => {
if (isProd || ready) {
let file = filePath.slice(SOURCE_DIR.length)
let target = join(DIST_DIR, file)
@ -63,10 +62,8 @@ export default function compile(root = '', isProd = false, es) {
break
}
}
}
})
.on('ready', () => {
ready = true
if (isProd) {
process.exit()
}

View File

@ -1,7 +1,7 @@
{
"name": "@bd/wcui-cli",
"type": "module",
"version": "1.0.0",
"version": "1.0.1",
"bin": {
"wcui-cli": "index.js"
},