How to uglify output with Browserify in Gulp?
You actually got pretty close, except for one thing: you need to convert the streaming vinyl file object given by source() with vinyl-buffer because gulp-uglify (and most gulp plugins) works on buffered vinyl file objects So you’d have this instead var browserify = require(‘browserify’); var gulp = require(‘gulp’); var uglify = require(‘gulp-uglify’); var source = … Read more