Where can I download the browser build of UglifyJS 2? I'm having trouble building it myself.
'uglifyjs' is not recognized as an internal or external command, operable program or batch file.
Head over to http://lisperator.net/uglifyjs/
Once you installed it for NodeJS, UglifyJS2 provides a quick way to build itself for the browser:
uglifyjs --self -c -m -o ./tmp/uglifyjs.js
The command worked for me. Now, you can use it in your browser straight away.
For specifying the options for the methods, you should look at:
Note: the error you're getting when you run
uglifyjs in your command-line seems like your terminal is not able to locate the installed file. Try to do a global install using
npm -g install uglify-js or use the command from the directory where you installed it in.