Skip to content

Commit ee07437

Browse files
Fixed gulp-file
1 parent 1006bf1 commit ee07437

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

gulpfile.js

+15-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,23 @@ gulp.task("noNotFound", () => {
2323
.pipe(gulp.dest('./dist/'));
2424
})
2525

26-
gulp.task("noJekyll", () => {
26+
gulp.task("noJekyll", async () => {
27+
2728
const path = require("path");
2829
const fs = require("fs");
2930

30-
fs.writeFileSync(path.join("./dist", ".nojekyll"), "")
31+
const route = path.join("./dist", ".nojekyll");
32+
33+
fs.writeFileSync(route, "");
34+
35+
new Promise(res => fs.writeFile(route, "", () => {
36+
res();
37+
}));
3138
})
3239

33-
gulp.task("default", gulp.parallel("copy-pics", "noNotFound", "noJekyll", "copy-workers"));
40+
gulp.task("default",
41+
gulp.parallel(
42+
"copy-pics",
43+
"noNotFound",
44+
"noJekyll",
45+
"copy-workers"));

0 commit comments

Comments
 (0)