Fix build error when sounds dir does not exist
This commit is contained in:
parent
98d8472afd
commit
b2e95de0af
|
@ -7,7 +7,7 @@ function gulptasksSounds($, gulp, buildFolder) {
|
|||
const builtSoundsDir = path.join("..", "res_built", "sounds");
|
||||
|
||||
gulp.task("sounds.clear", () => {
|
||||
return gulp.src(builtSoundsDir).pipe($.clean({ force: true }));
|
||||
return gulp.src(builtSoundsDir, { read: false, allowEmpty: true }).pipe($.clean({ force: true }));
|
||||
});
|
||||
|
||||
const filters = ["volume=0.2"];
|
||||
|
|
Reference in New Issue