@JosephW

Как заствить работать grunt-spritesmith через load-grunt-config?

Запускаю таск
grunt sprite

...и получаю ошибку:
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 файл тут: https://gist.github.com/JosephWM/c43530246cc0ba5d060a

Все задачи запускаются нормально, но не grunt-spritesmith.
В чём может быть дело?
  • Вопрос задан
  • 2630 просмотров
Решения вопроса 1
Вот вам пример из моего 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'
            }
        }
    });
};


сами задачи каждая в отдельном файле + aliases.yaml:
d6fcd597618442938f35e58891569288.PNG
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы