Optimized browserify task

This commit is contained in:
Daniel 2020-09-06 20:16:01 +02:00 committed by GitHub
parent 51c3405ea8
commit 40eb0e8534
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'));
gulp.task('dist', gulp.series('clean', 'build', 'dist:copy', 'dist:zip'));