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: { pretty: true }, all: { files: { expand:true, cwd: 'src/static/jade', ext: "html", src: ['src/static/jade/**/*.jade', '!src/static/jade/_includes'], dest: 'build/' } } } So basically I am trying to take the jade files in src/static/jade (including subdirs, except _include ) and put them in build , keeping the directory structure. I have