300+ free video programming tutorials ― Learn for free!

Grunt Tutorial - #5 - The Default Task

Category: Grunt - Author: Karl Hadwen

Home > Grunt > Grunt Tutorial - #5 - The Default Task

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

Register a default task is very simple, just focus on the plugin that you want to register as the default task (you can register more than one). To register a single default task use:

grunt.registerTask('default', ["cssmin"]);

To register multiple default tasks use:

grunt.registerTask('default', ["uglify", "cssmin"]);

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!)