diff --git a/build/compile.js b/build/compile.js index 899597035a..071c6759c4 100644 --- a/build/compile.js +++ b/build/compile.js @@ -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 // 当前项目根目录 // 生成 项目所需的文件