Skip to content

Instantly share code, notes, and snippets.

@qcom
Created February 13, 2016 09:19
Show Gist options
  • Save qcom/2435d202fcd38211c87d to your computer and use it in GitHub Desktop.
Save qcom/2435d202fcd38211c87d to your computer and use it in GitHub Desktop.
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