Created
June 8, 2014 14:36
-
-
Save ubolonton/05256a6d35b1c6164adc 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
gulp.task("js:crypto", function() { | |
var browserify = require("browserify"); | |
var source = require("vinyl-source-stream"); | |
var b = browserify({ | |
basedir: "./" | |
}); | |
b.require("crypto", {expose: "crypto"}); | |
return b.bundle() | |
.pipe(source("crypto.js")) | |
.pipe(gulp.dest(jsOutPath)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment