From f0880a0180305883fff25c251e5a9ca4bd10d3f2 Mon Sep 17 00:00:00 2001 From: loviuz Date: Sat, 30 Jul 2022 20:45:22 +0200 Subject: [PATCH] Fix per disabilitare la minificazione JS in debug mode --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 2a9a10e2f..3c0d6e6f0 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -127,7 +127,7 @@ const JS = gulp.parallel(() => { return gulp.src(vendor) .pipe(babel(config.babelOptions)) .pipe(concat('app.min.js')) - .pipe(minifyJS()) + .pipe(gulpIf(!config.debug, minifyJS())) .pipe(gulp.dest(config.production + '/' + config.paths.js)); }, srcJS);