Polymer - 如何指定特定元素的版本号?

时间:2015-01-27 16:42:48

标签: polymer bower paper-elements core-elements

我对Bower很新。在我的bower.json文件中,我将Polymer,core-elements和paper-elements设置为0.5.4版。但是,我想将core-icons设置为版本0.5.2,同时将所有其他元素保持为0.5.4。我怎样才能做到这一点?这是我的bower.json代码:

{
    "name": "website",
    "version": "0.0.0",
    "dependencies": {
        "polymer": "Polymer/polymer#~0.5.4",
        "core-elements": "Polymer/core-elements#~0.5.4",
        "paper-elements": "Polymer/paper-elements#~0.5.4"
    }
}

1 个答案:

答案 0 :(得分:3)

尝试

bower install --save polymer/core-icons#0.5.2

或添加bower.json

"core-icons": "polymer/core-icons#0.5.2"

然后运行bower install。它对我有用。