1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-07 01:54:10 +00:00

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

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