Get just jQuery with bower

寵の児 提交于 2019-12-14 02:40:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!