fix error when building in dev mode
This commit is contained in:
parent
3ac8a77e31
commit
71ce15a5c5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue