Skip to content

Commit 81c09da

Browse files
author
Leon Daniel Thorne
committed
Use es2015 as babel preset in gulp build in production
1 parent 3090f31 commit 81c09da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generated/gulpfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ gulp.task('buildCSSProduction', function () {
112112
gulp.task('buildJSProduction', function () {
113113
return gulp.src(['./browser/js/app.js', './browser/js/**/*.js'])
114114
.pipe(concat('main.js'))
115-
.pipe(babel())
115+
.pipe(babel({
116+
presets: ['es2015']
117+
}))
116118
.pipe(ngAnnotate())
117119
.pipe(uglify())
118120
.pipe(gulp.dest('./public'));

0 commit comments

Comments
 (0)