Grunt Jade Error
Whenever I run grunt jade I get an error: Warning: pattern.indexOf is not a function Use --force to continue. Now here is my jade task: jade: { options: {
Solution 1:
Your initial issues is that files
should be an array of objects, not just an object: files: [{...}]
.
But then you have other troubles with your file definition:
- if you specify
cwd
, yoursrc
should not repeat it - your
ext
needs a starting.
- your ! pattern needs to specify files instead of a dir
So you need:
files: [{
expand:true,
cwd: 'src/static/jade/',
ext: ".html",
src: ['**/*.jade', '!_includes/**/*.jade'],
dest: 'build/'
}]
Post a Comment for "Grunt Jade Error"