From b2e95de0af71e093d02ea941bb9e78ccddb8b5c3 Mon Sep 17 00:00:00 2001 From: Ivan Demchuk Date: Sat, 13 Jun 2020 19:46:25 +0300 Subject: [PATCH] Fix build error when sounds dir does not exist --- gulp/sounds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/sounds.js b/gulp/sounds.js index 23229409..5291a934 100644 --- a/gulp/sounds.js +++ b/gulp/sounds.js @@ -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"];