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()
|
||||||
|
@ -279,4 +279,4 @@ gulp.task('dist:zip', (done) => {
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('dist', gulp.series('clean', 'build', 'dist:copy', 'dist:zip'));
|
gulp.task('dist', gulp.series('clean', 'build', 'dist:copy', 'dist:zip'));
|
||||||
|
|
Loading…
Reference in a new issue