Skip to content

Commit

Permalink
fix uglify build
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Jul 30, 2017
1 parent 6dec9a0 commit ca722dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ gulp.task(
['prepare'],
() => browserify('build/index.js', {debug: true})
.transform('require-globify')
.transform('babelify', {presets: ['es2015'], plugins: ['transform-runtime']})
.transform('babelify', {
global: true,
presets: ['es2015'],
plugins: ['transform-runtime'],
ignore: /node_modules\/(?!draggy)/
})
.transform('envify')
.bundle()
.pipe(gulpif(IS_PROD, source('betterttv.unmin.js'), source('betterttv.js')))
Expand Down

0 comments on commit ca722dc

Please sign in to comment.