Skip to content

Commit d830f3a

Browse files
author
liw003
committed
x
1 parent 50c00e1 commit d830f3a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

gulpfile.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,16 @@ function clean(cb) {
9191
try {
9292
rm("./tmp", () => {
9393
console.log("clean3");
94-
rm("./www/js", (e) => {
95-
console.log("clean3333");
96-
console.log(e);
97-
cb();
98-
});
94+
if(fs.existsSync('./www/js')){
95+
rm("./www/js", (e) => {
96+
console.log("clean3333");
97+
console.log(e);
98+
cb();
99+
});
100+
}else{
101+
cb()
102+
}
103+
99104
});
100105
} catch (error) {
101106
console.log(error);

0 commit comments

Comments
 (0)