Я пытаюсь настроить мой Gruntfile для компиляции всех моих файлов Jade в отдельные файлы HTML. Например, если у меня есть следующая исходная папка:
source
└── templates
├── first.jade
├── second.jade
└── third.jade
Тогда я ожидал бы grunt jade
для вывода:
build
└── templates
├── first.html
├── second.html
└── third.html
Здесь мой Gruntfile с помощью grunt-contrib-jade
:
module.exports = function(grunt) {
grunt.initConfig({
jade: {
compile: {
options: {
client: false,
pretty: true
},
files: [ {
src: "*.jade",
dest: "build/templates/",
ext: "html",
cwd: "source/templates/"
} ]
}
},
});
grunt.loadNpmTasks("grunt-contrib-jade");
};
Однако, когда я запускаю команду jade, я получаю следующие ошибки:
Running "jade:compile" (jade) task
>> Source file "first.jade" not found.
>> Source file "second.jade" not found.
>> Source file "third.jade" not found.
Что я делаю неправильно?