我有一个警告:"无法写入"dest/full /"文件(错误代码:EISDIR)"而htmlrefs试图完成其任务.
htmlrefs: {
dist: {
/** @required - string including grunt glob variables */
src: 'src/*.html',
/** @optional - string directory name*/
dest: 'dest/full/',
options: {
/** @optional - references external files to be included */
/*
includes: {
analytics: './ga.inc' // in this case it's google analytics (see sample below)
},
*/
/** any other parameter included on the options will be passed for template evaluation */
buildNumber: 1
}
}
},
Run Code Online (Sandbox Code Playgroud)
当然我没有新文件.谢谢.
小智 14
我不知道你是否想出来了,但我很确定你需要在"dist"对象中添加"expand:true".我不知道为什么它被排除在文档之外.试试吧.
htmlrefs: {
dist: {
expand: true,
src: 'src/*.html',
dest: 'dest/full/',
options: {
includes: {
analytics: './ga.inc'
},
buildNumber: 1
}
}
},
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2817 次 |
| 最近记录: |