J
J
JosephW2015-02-11 19:25:13
JavaScript
JosephW, 2015-02-11 19:25:13

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.

Grunfile.js & --config-debug file here: https://gist.github.com/JosephWM/c43530246cc0ba5d060a
All tasks run fine, but not grunt-spritesmith.
What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Khokhlov, 2015-02-11
@JosephW

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'
            }
        }
    });
};

the tasks themselves are each in a separate file + aliases.yaml:
d6fcd597618442938f35e58891569288.PNG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question