Es6 Transpiler + Browserify + Gulp
I am trying to create a gulp task that takes code generated from the ES6 module transpile (using CJS), and use browserify to turn that into a single file. I have the following cod
Solution 1:
Use it like this:
.pipe(browserify())
.pipe(gulp.dest('./dist/app.js'));
Note that browserify
plugin takes an object {}
as options. not a string as destination. Check out the gulp-browserify plugin for how to use it.
Post a Comment for "Es6 Transpiler + Browserify + Gulp"