Skip to content

Commit

Permalink
tell browserify not to detect globals (speeds up build)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Oct 29, 2023
1 parent 6a563a0 commit cb7873f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ gulp.task('images', gulp.series('clean:images', function _images() {
gulp.task('clean:js', del.bind(null, 'public/build/build.js'));

gulp.task('js', gulp.series('clean:js', function _js() {
return browserify('src/scripts/main.js', { detectGlobals: true })
return browserify('src/scripts/main.js', { detectGlobals: false })
.on('error', function (e) { if (isDist) throw e; log(e.stack || e); this.emit('end'); })
.bundle()
.pipe(source('main.bundle.js'))
Expand Down

0 comments on commit cb7873f

Please sign in to comment.