grunt failed due to jit-grunt: Plugin for the "help" not found

5.6k views Asked by At

enter image description here what is going on? i tried adding this below in Gruntfile.js, but it still doesn't work.

module.exports =function(grunt){

    require('time-grunt')(grunt);

    require('load-grunt-config')(grunt, {
        jitGrunt: true
    });
};
1

There are 1 answers

0
Ian Jamieson On

You need to add a static mapping to your load-grunt-config task, like this:

require('load-grunt-config')(grunt, {
    jitGrunt: {
        staticMappings: {
            default: 'the-name-of-your-grunt-task'
        }
    }
});

This link may also help:

http://ia.njamieson.co.uk/2015/03/27/speeding-up-grunt-initial-load-jit-grunt-and-load-grunt-config/