Skip to content

Commit d5c0728

Browse files
committed
编译前删除老的文件
1 parent e7bdd50 commit d5c0728

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build/compile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ marked.setOptions({
4545
}
4646
});
4747

48-
var path_root = path.dirname(__dirname);
48+
// 根目录
49+
// var path_root = path.dirname(__dirname);
50+
var path_root = process.cwd();
4951

5052

53+
// 删除文件夹
54+
exec('rm -rf .deploy');
55+
5156
// .deploy
5257
// 当前项目根目录
5358
// 生成 项目所需的文件

0 commit comments

Comments
 (0)