Skip to content

Instantly share code, notes, and snippets.

@karellm
Created March 5, 2016 21:46
Show Gist options
  • Save karellm/d2e21a0751226950983d to your computer and use it in GitHub Desktop.
Save karellm/d2e21a0751226950983d to your computer and use it in GitHub Desktop.
The only right way!
gulp.task(
'build-jsx',
() => {
return (
browserify({
entries: './client/index.js',
debug: true,
})
.transform(babelify.configure({
presets: ['es2015', 'react']
}))
.bundle()
.pipe(source('index.js'))
.pipe(gulp.dest('./build/client'))
);
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment