Skip to content

Commit

Permalink
add babel
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehobbs committed Jul 9, 2020
1 parent c76a9da commit f4c56d1
Show file tree
Hide file tree
Showing 4 changed files with 1,374 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ var gulp = require('gulp');
var minify = require('gulp-minify');
var cleanCss = require('gulp-clean-css');
var rename = require("gulp-rename");
var babel = require("gulp-babel");

gulp.task('pack-js', function () {
return gulp.src('src/*.js')
.pipe(babel())
.pipe(minify({
ext:{
min:'.min.js'
Expand Down
Loading

0 comments on commit f4c56d1

Please sign in to comment.