2

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
    });
};
Shaun Stanislaus
  • 511
  • 1
  • 6
  • 20

1 Answers1

3

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/

Ian Jamieson
  • 4,376
  • 2
  • 35
  • 55