简体   繁体   English

仅凭凉亭获取jQuery

[英]Get just jQuery with bower

Hei

Is it possible to get only jquery.min.js. 是否有可能仅获得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. 我对在他们的项目中使用他们的Gruntfile感兴趣。

What you're looking for is bower-installer . 您正在寻找的是bower-installer Install this npm and then just add this properties to bower.json file: 安装此npm ,然后将以下属性添加到bower.json文件中:

"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 . 然后运行以下命令: bower-installer Hope that's what you're after! 希望那是你所追求的!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM