Last active
April 19, 2018 06:36
-
-
Save phated/6b8f953dc72b5744b8ac to your computer and use it in GitHub Desktop.
Non-misinformed gulp browserify usage
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
'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); | |
}); |
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
'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')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
any ideas on throwing watchify in the mix?