Configuring Grunt
Check this post to know how to install Grunt. Grunt has main script file called Gruntfile.js. It is a nodejs module – means that you are free to use all power of nodejs there.
The module is wrapped up with this construction:
module.exports = function(grunt) { ..... some code here ..... }
We pass grunt object inside the module for further usage.
Let’s look closer how to use it.