Skip to content

Commit

Permalink
Add babel to make sure that the library will work on all browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsw3 committed Mar 11, 2018
1 parent 7c9fc7f commit af4d5ad
Show file tree
Hide file tree
Showing 5 changed files with 710 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/gradientify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var gulp = require('gulp')
var pug = require('gulp-pug')
const debug = require('gulp-debug')
var stylus = require('gulp-stylus')
const babel = require('gulp-babel')
var uglify = require('gulp-uglify-es').default
var pump = require('pump')

Expand All @@ -21,7 +22,9 @@ gulp.task('css', function () {

gulp.task('compress', function (cb) {
pump([
gulp.src('src/*.js'),
gulp.src('src/*.js').pipe(babel({
presets: ['env']
})),
uglify(),
gulp.dest('build')
],
Expand Down
Loading

0 comments on commit af4d5ad

Please sign in to comment.