Skip to content

Instantly share code, notes, and snippets.

@ubolonton
Created June 8, 2014 14:36
Show Gist options
  • Save ubolonton/05256a6d35b1c6164adc to your computer and use it in GitHub Desktop.
Save ubolonton/05256a6d35b1c6164adc to your computer and use it in GitHub Desktop.
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