Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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