编译前删除老的文件

This commit is contained in:
jaywcjlove 2016-11-19 02:48:07 +08:00
parent e7bdd50824
commit d5c07285e7
1 changed files with 6 additions and 1 deletions

View File

@ -45,9 +45,14 @@ marked.setOptions({
}
});
var path_root = path.dirname(__dirname);
// 根目录
// var path_root = path.dirname(__dirname);
var path_root = process.cwd();
// 删除文件夹
exec('rm -rf .deploy');
// .deploy
// 当前项目根目录
// 生成 项目所需的文件