How I can prevent bower from downloading the whole repo

旧街凉风 提交于 2019-12-22 09:19:48

问题


I just need the .min files, but it downloads the whole repo and it's very big.

This is my bower.json

{
"name": "blah",
"version": "0.0.0",
"dependencies": {
    "backbone": "~1.0.0",
    "underscore": "~1.4.4",
    "jquery": "~1.9.1",
    "backbone.localStorage": "~1.1.0",
    "bootstrap": "",
    "requirejs": "",
    "mustache": "",
    "hammerjs": ""
    }
}

回答1:


Bower is deliberately not opinionated about the content of packages, so it does not give you that kind of control, it just downloads the whole thing.

The idea is that you would then use a build system or task runner (such as Grunt) to perform tasks like minification or compilation as a second step.



来源:https://stackoverflow.com/questions/22988599/how-i-can-prevent-bower-from-downloading-the-whole-repo

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