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()