Skip to content

Instantly share code, notes, and snippets.

@kevinsimper
Created August 26, 2015 22:48
Show Gist options
  • Save kevinsimper/1390813e66e301474e38 to your computer and use it in GitHub Desktop.
Save kevinsimper/1390813e66e301474e38 to your computer and use it in GitHub Desktop.
gulp.src([‘./app/*.js’])
.pipe(through2.obj(function(file, enc, callback) {
var self = this
var b = browserify()
b.add(file.path)
b.transform(reactify)
b.bundle(function(err, src) {
if(err) console.log(err)
// here we need to push the file down the stream
})
}))
.pipe(gulp.dest(‘./public/build/’));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment