Answer the question
In order to leave comments, you need to log in
How to make grunt-spritesmith work with load-grunt-config?
I run the
grunt sprite task
...and get the following error:
jit-grunt: Plugin for the "sprite" task not found. If you have installed the plugin already, please setting the static mapping. See https://github.com/shootaroo/jit-grunt#static-mappings
Warning: Task "sprite" failed. Use --force to continue.
Aborted due to warnings.
Answer the question
In order to leave comments, you need to log in
Here is an example from my gruntfile
module.exports = function(grunt) {
var path = require('path');
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt/tasks'),
jitGrunt: {
staticMappings: {
sprite: 'grunt-spritesmith'
}
}
});
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question