Fixing babel-polyfill integration
This commit is contained in:
parent
b3c5b441bc
commit
bec65ee1b8
@ -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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user