【发布时间】:2017-10-04 04:39:56
【问题描述】:
我正在尝试更新应用程序以支持 Node -v 7.7.3。但是当我按照以下方式运行 grunt 任务 dom_munger 时:
dom_munger:{
read: {
options: {
read:[
{selector:'script[data-concat!="false"]',attribute:'src',writeto:'appjs', isPath: true},
{selector:'link[rel="stylesheet"][data-concat!="false"]',attribute:'href',writeto:'appcss'}
]
},
src: 'app/index.html'
}
}
我收到错误:
Warning: Path must be a string. Received [ 'app/index.html' ] Use --force to continue.
我想知道是否有办法重写上面的 grunt 任务,或者是否有替代 dom_munger 的好方法。任何帮助将不胜感激。
【问题讨论】: