0
我試圖讓Bower在我的Drupal項目中工作。在我的項目的根目錄中,我有一個bower.json
和.bowerrc
文件。 Bower組件正在安裝在sites/all/themes/mytheme/libraries
。使用grunt-wiredep後錯誤的涼亭組件路徑
我設置咕嚕-wiredep自動注入我的涼亭的部件在我html.tpl.php
文件,像這樣:
wiredep: {
task: {
src: 'sites/all/themes/mytheme/templates/html.tpl.php'
}
}
當使用grunt wiredep
,插件注入到我的index.tpl.php
文件路徑如下:
<script src="../libraries/jquery/dist/jquery.js"></script>
,它應該是這樣的:
<script src="sites/all/themes/mytheme/libraries/jquery/dist/jquery.js"></script>
我已經嘗試在wiredep任務中添加directory: 'sites/all/thems/mytheme';
,但隨後出現我的依賴關係未安裝的錯誤。
任何人都可以幫助我嗎?