仅凭凉亭获取jQuery [英] Get just jQuery with bower
本文介绍了仅凭凉亭获取jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hei
是否只能获取jquery.min.js.运行时
Is it possible to get only jquery.min.js. When running
bower install jquery#1.9.0
我得到了很多我不需要的东西.我对在他们的项目中使用他们的Gruntfile感兴趣.
I get a lot of stuff that I will never need. I am not interested to have their Gruntfile in my project.
推荐答案
您正在寻找的是bower-installer
.安装此npm ,然后将以下属性添加到bower.json文件中:
What you're looking for is bower-installer
. Install this npm and then just add this properties to bower.json file:
"dependencies" : {
"jquery" : "~1.9.0"
},
"install" : {
"path" : "path-to-your-vendor-files",
"sources": {
"jquery" : [
"components/jquery/master/jquery.min.js"
]
}
}
然后运行以下命令:bower-installer
.希望这就是你所追求的!
Then run this command: bower-installer
. Hope that's what you're after!
这篇关于仅凭凉亭获取jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文