Skip to content

Instantly share code, notes, and snippets.

@qcom
Created Feb 13, 2016
Embed
What would you like to do?
gulp.task('jsx', function() {
return browserify({
entries: paths.reactEntryPoints,
extensions: ['jsx'],
debug: true
}).transform(babelify.configure({
presets: ['es2015', 'stage-1', 'react']
})).bundle()
.on('error', function(err) { console.error(err.message); this.emit('end'); })
.pipe(source('components.js'))
.pipe(gulp.dest('public/js'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment