문제

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": ""
    }
}
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top