Update gulpfile.js
This commit is contained in:
parent
afd6558369
commit
75beea223b
|
@ -182,7 +182,7 @@ gulp.task("build-node-games", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
function ProcessJS(stream, concatName, skipBabel) {
|
function ProcessJS(stream, concatName, skipBabel) {
|
||||||
if (!argv.prod)
|
if (!argv.prod && concatName)
|
||||||
stream = stream.pipe(sourcemaps.init());
|
stream = stream.pipe(sourcemaps.init());
|
||||||
if (!skipBabel)
|
if (!skipBabel)
|
||||||
stream = stream.pipe(babel({
|
stream = stream.pipe(babel({
|
||||||
|
@ -197,7 +197,7 @@ function ProcessJS(stream, concatName, skipBabel) {
|
||||||
});
|
});
|
||||||
if (concatName)
|
if (concatName)
|
||||||
stream = stream.pipe(concat(concatName));
|
stream = stream.pipe(concat(concatName));
|
||||||
if (!argv.prod)
|
if (!argv.prod && concatName)
|
||||||
stream = stream.pipe(sourcemaps.write("."));
|
stream = stream.pipe(sourcemaps.write("."));
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue