Find your content:

Search form

You are here

What is Grunt?

 
Share

Grunt is a automation tool which is developed using nodejs. It helps to automate the following tasks

 

1. SASS to css compilation

2. CSS & Javascript minification

3. CSS, Js files merging

4. tmp directory cleanup tasks and etc...

 

It has various plugins i.e

1. grunt-contrib-cssmin

2. grunt-contrib-clean

3. grunt-contrib-concat

4. grunt-browser-sync

 

One example of grunt configuration

module.exports = function(grunt){
     grunt.config.set(‘clean’,{
               dev:[‘.tmp/public/**’],
               build:[‘www’]
      });
grunt.loadNpmTasks(‘grunt-contrib-clean’);

}

My Block Status

My Block Content