Update gulpfile.js

This commit is contained in:
tilera 2019-01-20 18:20:26 +01:00 committed by GitHub
parent afd6558369
commit 75beea223b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}