300+ free video programming tutorials ― Learn for free!
Category: Grunt - Author: Karl Hadwen
Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge
The best shared web hosting: https://www.bluehost.com/track/karlhadwen/
The best simple cloud hosting for developers: https://m.do.co/c/426ceabcea09
Make sure you're in your project folder when applying the following commands below, and do make sure you have Grunt installed in that particular folder.
sudo npm install grunt-contrib-uglify --save-dev (drop the sudo if you're on Windows)
Once you've ran the latter command, go ahead and add the following to your Gruntfile:
To use Uglify, just simply run the 'grunt uglify' command in terminal. Hopefully that helps, if not, let me know and I'll see what I can do.
Grunt uglify repository: https://github.com/gruntjs/grunt-contrib-uglify
Want to stay up to date with commonly asked questions & answers, or how about a monthly digest of useful resources that I've found online? Go ahead and sign up to the Cognitive Surge community mailing list here: http://eepurl.com/bG93vz
Like the Cognitive Surge Facebook page
Follow me on Twitter (Feel free to tweet me questions!)