Created
February 13, 2016 09:19
-
-
Save qcom/2435d202fcd38211c87d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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