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:
Thomas A. Reinert 2019-06-11 23:51:31 +02:00 committed by GitHub
commit 30103651df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 919 additions and 82 deletions

View File

@ -160,7 +160,11 @@ gulp.task('scripts', function() {
];
gulp
.src(scripts, { allowEmpty: true })
.pipe(babel())
.pipe(babel(
{
presets: ['@babel/preset-env']
}
))
.pipe(concat('theme.min.js'))
.pipe(uglify())
.pipe(gulp.dest(paths.js));

994
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@
},
"homepage": "https://understrap.com",
"dependencies": {
"@babel/preset-env": "^7.4.5",
"bootstrap": "^4.3.1",
"browser-sync": "^2.26.3",
"del": "^4.1.0",