Merge pull request #988 from jweston491/add-babel
Fix for #987. Thanks for submitting the issue, testing it and helping out with a pull request to @jweston491
This commit is contained in:
commit
30103651df
|
@ -160,7 +160,11 @@ gulp.task('scripts', function() {
|
||||||
];
|
];
|
||||||
gulp
|
gulp
|
||||||
.src(scripts, { allowEmpty: true })
|
.src(scripts, { allowEmpty: true })
|
||||||
.pipe(babel())
|
.pipe(babel(
|
||||||
|
{
|
||||||
|
presets: ['@babel/preset-env']
|
||||||
|
}
|
||||||
|
))
|
||||||
.pipe(concat('theme.min.js'))
|
.pipe(concat('theme.min.js'))
|
||||||
.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(gulp.dest(paths.js));
|
.pipe(gulp.dest(paths.js));
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -27,6 +27,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://understrap.com",
|
"homepage": "https://understrap.com",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/preset-env": "^7.4.5",
|
||||||
"bootstrap": "^4.3.1",
|
"bootstrap": "^4.3.1",
|
||||||
"browser-sync": "^2.26.3",
|
"browser-sync": "^2.26.3",
|
||||||
"del": "^4.1.0",
|
"del": "^4.1.0",
|
||||||
|
|
Reference in New Issue