Specifying latest revision of a particular branch with bower

前端 未结 3 1107
旧巷少年郎
旧巷少年郎 2020-12-23 11:35

I want to specify the latest revision of a particular branch as a dependency. Specifically, I\'d like to use Bootstrap v3.0 before it is released.

What is the best w

3条回答
  •  再見小時候
    2020-12-23 12:01

    You need to use the #, appended to the component name:

    bower install bootstrap#version3-branch-name
    

    And as you might expect, if you add --save-dev to that, then it will add to your bower.json file:

    "bootstrap": "version3-branch-name"
    

提交回复
热议问题