Fix per disabilitare la minificazione JS in debug mode

This commit is contained in:
loviuz 2022-07-30 20:45:22 +02:00
parent 8c116355b4
commit f0880a0180
1 changed files with 1 additions and 1 deletions

View File

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