From 75beea223b4e9ae54b9c47f7e1ed61a39c85893f Mon Sep 17 00:00:00 2001 From: tilera Date: Sun, 20 Jan 2019 18:20:26 +0100 Subject: [PATCH] Update gulpfile.js --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 827e132..9b634d9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -182,7 +182,7 @@ gulp.task("build-node-games", function () { }); function ProcessJS(stream, concatName, skipBabel) { - if (!argv.prod) + if (!argv.prod && concatName) stream = stream.pipe(sourcemaps.init()); if (!skipBabel) stream = stream.pipe(babel({ @@ -197,7 +197,7 @@ function ProcessJS(stream, concatName, skipBabel) { }); if (concatName) stream = stream.pipe(concat(concatName)); - if (!argv.prod) + if (!argv.prod && concatName) stream = stream.pipe(sourcemaps.write(".")); return stream; }