Optimized browserify task
This commit is contained in:
parent
51c3405ea8
commit
40eb0e8534
|
@ -110,7 +110,7 @@ gulp.task('styles', () => {
|
||||||
gulp.task('scripts', () => {
|
gulp.task('scripts', () => {
|
||||||
let b = browserify({
|
let b = browserify({
|
||||||
entries: `${src.scripts}/index.js`,
|
entries: `${src.scripts}/index.js`,
|
||||||
debug: true
|
debug: isDev
|
||||||
});
|
});
|
||||||
|
|
||||||
return b.transform('babelify').bundle()
|
return b.transform('babelify').bundle()
|
||||||
|
|
Loading…
Reference in a new issue