Created
November 2, 2016 18:31
-
-
Save typeoneerror/6ba7196d95cff0b9cac0e24e78d175ec to your computer and use it in GitHub Desktop.
This file contains 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