【发布时间】:2016-01-10 14:34:44
【问题描述】:
每当我运行 grunt Jade 时都会出现错误:
Warning: pattern.indexOf is not a function Use --force to continue.
现在这是我的翡翠任务:
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/'
}
}
}
所以基本上我想把src/static/jade中的玉文件(包括子目录,_include除外)放在build中,保持目录结构。我尝试评论expand 行,但它给了我:
Warning: Unable to read "src/static/jade" file (Error code: EISDIR). Use --force to continue.
也许我以错误的方式解决这个问题。我应该如何解决这个问题?
【问题讨论】:
标签: javascript node.js gruntjs grunt-contrib-jade