嘿
是否可以只获取 jquery.min.js。运行时
bower install jquery#1.9.0
我得到了很多我永远不需要的东西。我对在我的项目中使用他们的 Gruntfile 不感兴趣。
最佳答案
您正在寻找的是 bower-installer
。安装this npm然后只需将此属性添加到 bower.json 文件:
"dependencies" : {
"jquery" : "~1.9.0"
},
"install" : {
"path" : "path-to-your-vendor-files",
"sources": {
"jquery" : [
"components/jquery/master/jquery.min.js"
]
}
}
然后运行此命令:bower-installer
。希望这就是您所追求的!
关于javascript - 使用 bower 获取 jQuery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22389972/