Skip to content

Instantly share code, notes, and snippets.

@phated
Last active April 19, 2018 06:36
Show Gist options
  • Select an option

  • Save phated/6b8f953dc72b5744b8ac to your computer and use it in GitHub Desktop.

Select an option

Save phated/6b8f953dc72b5744b8ac to your computer and use it in GitHub Desktop.
Non-misinformed gulp browserify usage
'use strict';
var gulp = require('gulp');
var browserify = require('browserify');
gulp.task('js', function(){
return browserify('./entry.js', { debug: true, transform: ['reactify']})
.bundle().pipe(process.stdout);
});
'use strict';
var fs = require('fs');
var gulp = require('gulp');
var browserify = require('browserify');
gulp.task('js', function(){
return browserify('./entry.js', { debug: true, transform: ['reactify']})
.bundle().pipe(fs.createWriteStream('./bundle.js'));
});
@callmecavs
Copy link
Copy Markdown

any ideas on throwing watchify in the mix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment