diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-09-06 15:59:57 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-09-06 15:59:57 +0200 |
commit | 57e142dc6f5dfc6c6394d04ff4e807bb8288a417 (patch) | |
tree | 5985b4f856cf0f87598f653f610f35eae0a7578f /gulpfile.js | |
parent | b98b24dceb343c5018a03fde3ae12629a00d9f2c (diff) |
Fixing safari is imposible, so I used tools to do it for me.
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gulpfile.js b/gulpfile.js index b0bc0d7..9003b90 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,15 +1,19 @@ const gulp = require('gulp') const browserify = require('gulp-browserify') +const babel = require('gulp-babel') // Basic usage gulp.task('scripts', function () { // Single entry point to browserify - gulp.src('public/javascripts/main.js') + return gulp.src('public/javascripts/*.js') + .pipe(babel({ + presets: ['es2015'] + })) .pipe(browserify({ insertGlobals: true, debug: !gulp.env.production })) - .pipe(gulp.dest('public/javascripts/bundle.js')) + .pipe(gulp.dest('public/javascripts/dest')) }) gulp.task('scripts:watch', function () { |