【问题标题】:Difference between rake assets:precompile:all and rake assets:precompile:primaryrake assets:precompile:all 和 rake assets:precompile:primary 之间的区别
【发布时间】:2016-08-21 22:00:06
【问题描述】:

我们使用 Rails 3 作为我们的应用程序。使用rake assets:precompile:all 编译资产需要相当长的时间,但使用rake assets:precompile:primary 它运行得更快

它们之间有什么区别?我可以使用primary吗?

【问题讨论】:

    标签: ruby-on-rails ruby rake asset-pipeline


    【解决方案1】:

    是的,您可以使用:primary。我相信:all 编译非摘要和摘要资产,而:primary 仅编译摘要资产。摘要资产是名称中添加了校验和的资产。

    【讨论】:

      猜你喜欢
      • 2012-04-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-12
      • 2012-05-05
      • 2014-11-07
      • 2015-05-25
      • 2011-04-27
      相关资源
      最近更新 更多