Created
November 2, 2016 18:31
-
-
Save typeoneerror/de76e0ad73a42f28e7ab1a9e42d1888e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile javascript files from source | |
gulp.task('babel', function(cb) { | |
return gulp.src(paths.scripts) | |
.pipe(plumber()) | |
.pipe(babel({presets: ['es2015']})) | |
.pipe(gulp.dest(paths.scripts_compiled)) | |
.pipe(gulp.dest(path.join(paths.theme_dir, scripts_dir, source_dir))) | |
.on('error', handleError); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment