Just started to use browserify, but I cannot find documentation for how to get it spilling out minified output.
So I am looking something like:
$> browserify main.js > bundle.js --minified
Pipe it through uglifyjs:
browserify main.js | uglifyjs > bundle.js
You can install it using npm like so:
npm install -g uglify-js