Skip to content

Commit 6127d9c

Browse files
committed
fix: 修改 build 策略,不删除,只覆盖
1 parent 4812deb commit 6127d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

watch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ function debounce(func, wait, immediate) {
2929
return debounced;
3030
}
3131

32-
function build(config, name, callback) {
32+
function build() {
3333
console.log();
3434
console.log(chalk.green("-> building"));
35-
shelljs.exec("yarn publish:npm");
35+
shelljs.exec("cross-env NODE_ENV=production && npx babel src --out-dir lib --copy-files");
3636
console.log(chalk.green("-> build finished"));
3737
}
3838

0 commit comments

Comments
 (0)