コンポーネントを見つけて INDEX.HTML ファイルに直接挿入するコードを次に示します。
grunt.loadNpmTasks('grunt-wiredep');
wiredep: {
target: {
src: 'index.html' // point to your HTML file.
}
}
そしてindex.htmlで
< !-- bower:js -->
< !-- endbower -->
その後、bowerのようなライブラリをインストールします。
bower install jquery --save
その後
grunt wiredep
その後、私は得ました
➜ dc-customer-portal-spa git:(master) ✗ grunt wireep --debug
「wiredep:target」(wiredep) タスクの実行 [D] タスク ソース: /var/www/dc-customer-portal-spa/node_modules/grunt-wiredep/tasks/wiredep.js
エラーなしで完了。
しかし、html ファイルには含まれていません。