【问题标题】:Bower: replace the latest dependency version by its actual numberBower:用它的实际数量替换最新的依赖版本
【发布时间】:2014-08-08 10:19:28
【问题描述】:

我的 bower.json:

{
  "...." : "...."
  "name": "myproject",
  "dependencies": {
    "angular": "1.2.20",
    "bootstrap": "latest"
  }
}

我想将引导依赖项中的“最新”替换为其实际版本号。有没有办法通过 bower command 做到这一点? (不是通过自定义脚本)

【问题讨论】:

  • 刚刚看过这个,似乎没有直接的方法。我原以为bower install --save bootstrap 会起作用,但它用* 替换了latest,这是等效的。

标签: javascript bower


【解决方案1】:

不,bower 没有收缩包装功能。

这是一个长期存在的问题:https://github.com/bower/bower/issues/505

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-21
    • 1970-01-01
    • 2014-02-10
    • 2013-01-25
    • 2013-06-09
    • 2019-12-25
    • 1970-01-01
    • 2013-06-04
    相关资源
    最近更新 更多