Skip to main content
100%

gulp for es6 -> all-browser-friendly

✓ Published0🌍 Public
Aamazingandyyy
Last edited Oct 5, 2016
Created on Oct 4, 2016

This example demonstrates a Gulp workflow that compiles ES6 JavaScript into browser-compatible ES5 code. It uses `gulp.src` to read input files from the `dev` directory, then applies `gulp-sourcemaps` initialization, `gulp-plumber` for error handling, and `gulp-babel` with the `es2015` preset to transpile the code. The processed files are concatenated into `bundle.min.js`, with sourcemaps written, and output to the project root via `gulp.dest`. The task depends on a prior `clean:js` task to remove old builds.

AI-generated description

Similar vizzes