Fixing babel-polyfill integration

This commit is contained in:
Jeff Avallone 2015-11-10 21:40:35 -05:00
parent b3c5b441bc
commit bec65ee1b8

View File

@ -113,11 +113,9 @@ gulp.task('styles', 'Build stylesheets into ./build directory.', function() {
}); });
gulp.task('scripts', 'Build scripts into ./build directory', function() { gulp.task('scripts', 'Build scripts into ./build directory', function() {
return browserify(config.browserify) return browserify([require.resolve('babel-polyfill'), './src/js/main.js'], config.browserify)
.transform(canopy) .transform(canopy)
.transform(babelify) .transform(babelify)
.add(require.resolve('babel-polyfill'))
.add('./src/js/main.js')
.bundle() .bundle()
.on('error', notify.onError()) .on('error', notify.onError())
.pipe(source('main.js')) .pipe(source('main.js'))