From 8186da9d4c7e560d195e7a759713088e7be6e895 Mon Sep 17 00:00:00 2001 From: Ivan Demchuk Date: Sat, 13 Jun 2020 21:21:32 +0300 Subject: [PATCH] Fix gulp on Windows copying files to wrong location --- gulp/sounds.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulp/sounds.js b/gulp/sounds.js index 5291a934..fbebb588 100644 --- a/gulp/sounds.js +++ b/gulp/sounds.js @@ -3,8 +3,8 @@ const audiosprite = require("gulp-audiosprite"); function gulptasksSounds($, gulp, buildFolder) { // Gather some basic infos - const soundsDir = path.join("..", "res_raw", "sounds"); - const builtSoundsDir = path.join("..", "res_built", "sounds"); + const soundsDir = path.join(__dirname, "..", "res_raw", "sounds"); + const builtSoundsDir = path.join(__dirname, "..", "res_built", "sounds"); gulp.task("sounds.clear", () => { return gulp.src(builtSoundsDir, { read: false, allowEmpty: true }).pipe($.clean({ force: true }));