From 40eb0e853423057ab8abbf6a9658758f110ea607 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 6 Sep 2020 20:16:01 +0200 Subject: [PATCH] Optimized browserify task --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index e52020e..2fed0cc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -110,7 +110,7 @@ gulp.task('styles', () => { gulp.task('scripts', () => { let b = browserify({ entries: `${src.scripts}/index.js`, - debug: true + debug: isDev }); return b.transform('babelify').bundle() @@ -279,4 +279,4 @@ gulp.task('dist:zip', (done) => { done(); }) -gulp.task('dist', gulp.series('clean', 'build', 'dist:copy', 'dist:zip')); \ No newline at end of file +gulp.task('dist', gulp.series('clean', 'build', 'dist:copy', 'dist:zip'));