Return to Snippet

Revision: 58474
at July 17, 2012 12:51 by chrisaiv

Initial Code
//First download uglify-js.  The -g params allows you to make command-line tools
//sudo npm install -g uglify-js
cat * | uglifyjs -o script.js

Initial URL

Initial Description
If you happen to have 5 or 6 javascript files that you'd like to compress into 1, then try uglify within terminal.

Initial Title
NodeJS: Minimize all the JS files in a directory using Uglify-js

Initial Tags

Initial Language