how to output multiple bundles with browserify and gulp
问题 I have browserify bundling up files and it's working great. But what if I need to generate multiple bundles? I would like to end up with dist/appBundle.js and dist/publicBundle.js gulp.task("js", function(){ return browserify([ "./js/app.js", "./js/public.js" ]) .bundle() .pipe(source("bundle.js")) .pipe(gulp.dest("./dist")); }); Obviously this isn't going to work since I am only specifying one output (bundle.js). I can accomplish this by repeating the above statement like so (but it doesn't