Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gruntjs bower在样式中添加Jquery UI主题_Gruntjs_Yeoman_Bower_Bower Install_Grunt Contrib Concat - Fatal编程技术网

Gruntjs bower在样式中添加Jquery UI主题

Gruntjs bower在样式中添加Jquery UI主题,gruntjs,yeoman,bower,bower-install,grunt-contrib-concat,Gruntjs,Yeoman,Bower,Bower Install,Grunt Contrib Concat,在我的项目中,我加入了jQuery UI。我使用的是Bower、Yeoman和Grunt。 我添加了jqueryui:bower安装jqueryui--save 但是jQueryUI主题没有包含在Bower样式的组件中 <!-- build:css(.) styles/vendor.css --> <!-- bower:css --> <link rel="stylesheet" href="bower_components/components-font-aw

在我的项目中,我加入了jQuery UI。我使用的是Bower、Yeoman和Grunt。
我添加了jqueryui:
bower安装jqueryui--save

但是jQueryUI主题没有包含在Bower样式的组件中

<!-- build:css(.) styles/vendor.css --> 
<!-- bower:css --> 
<link rel="stylesheet" href="bower_components/components-font-awesome/css/font-awesome.css" /> 
<!-- endbower --> 
<!-- endbuild --> 
<!-- build:css(.tmp) styles/main.css ->


这不是图书馆的问题。它在Grunt wiredep中存在注入依赖项的问题,依赖项的文件名有jQueryUI、socket io、font awesome。有一种方法可以覆盖它

wiredep:{
目标:{
src:“/index.html”,
ignorePath:“/”,
排除:[/es5-shim.js/,/json3.js/,/bootstrap.css/,/font-awesome.css/,],
覆盖:{
“socket.io客户端”:{
main:'socket.io.js'
},
“jqueryui触摸冲床”:{
main:'jquery.ui.touch-punch.js'
}
}
}

},
您所说的“不包含在鲍尔样式组件中”是什么意思?如果你能告诉我怎么做那就太好了。我也有同样的问题!此配置文件的确切位置?因为我的项目中有数百个bower.json文件@mila检查wiredep任务的grunt文件,并添加以下覆盖:{'socket.io client':{main:'socket.io.js'},这将帮助您解决此问题issue@SlavikMe在项目的根目录中会有bower.json,其中包含项目的bower依赖项。在bower_components文件夹中会有包列表,每个人都有bower.json,这是特定包的配置