Last active
September 1, 2015 02:36
-
-
Save JohnAmican/1b093312f270b5aee7de 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
bundle = (name, opts) -> | |
_.extend opts, | |
fullPaths: true | |
cache: {} | |
packageCache: {} | |
b = browserify opts | |
rebundle = -> | |
b.bundle() | |
.on 'error', (err) -> | |
console.log err.toString() | |
@emit 'end' | |
.pipe source name | |
.pipe buffer() | |
.pipe gulp.dest "your/dest" | |
rebundle() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment