Fix build error when sounds dir does not exist

This commit is contained in:
Ivan Demchuk 2020-06-13 19:46:25 +03:00
parent 98d8472afd
commit b2e95de0af
1 changed files with 1 additions and 1 deletions

View File

@ -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"];