问题
Hei
Is it possible to get only jquery.min.js. When running
bower install jquery#1.9.0
I get a lot of stuff that I will never need. I am not interested to have their Gruntfile in my project.
回答1:
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"
]
}
}
Then run this command: bower-installer
. Hope that's what you're after!
来源:https://stackoverflow.com/questions/22389972/get-just-jquery-with-bower