Node -v 7.7.3をサポートするようにアプリケーションを更新しようとしています。しかし、私は以下のとおり面倒なタスクdom_mungerを実行していたとき:ノード7.7.3で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.
をdom_mungerの代わり。どんな助けもありがとう。 grunt-dom-munger
Githubのパー
ありがとうございます!しかし、これはGruntとIndexが同じフォルダ構造にある場合にのみ有効です。私の構造は次のようになります。 - /アプリ -index.html - そして属性なしをgruntfile.js「isPath」Gruntfileが場所ですとdom_mungerが同じディレクトリにjsのファイルを探します。 – sandrasvensson
@sandrasvenssonしかし、あなたは 'isPath'プロパティを削除しようとしましたか?それは[この類似の問題](https://github.com/cgross/grunt-dom-munger/issues/42)を解決するように思われた。 –