Skip to content

Instantly share code, notes, and snippets.

@ro31337
Created March 6, 2016 01:14
Show Gist options
  • Select an option

  • Save ro31337/07ee720c32545ab4c5d2 to your computer and use it in GitHub Desktop.

Select an option

Save ro31337/07ee720c32545ab4c5d2 to your computer and use it in GitHub Desktop.
gulp.task('browserify', function() {
var babelifyConfig = babelify.configure({presets: ['es2015', 'react'], extensions: ['.jsx']});
return browserify({
entries: 'src/app.jsx', // the same as "--extension=.jsx src/**/*.jsx"
extensions: ['.jsx']
})
.transform(babelifyConfig) // the same as -t command line parameter
.bundle()
.pipe(process.stdout);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment