[英]Difference between rake assets:precompile:all and rake assets:precompile:primary
We are using Rails 3 as our application. 我们使用Rails 3作为我们的应用程序。 Compiling assets with
rake assets:precompile:all
takes quite a long time but with rake assets:precompile:primary
it runs a bit faster 使用
rake assets:precompile:all
需要相当长的时间,但使用rake assets:precompile:primary
运行速度更快一点
What is the difference between them? 他们之间有什么区别? Can I just use
primary
? 我可以使用
primary
吗?
Yes you can just use :primary
. 是的你可以使用
:primary
。 I believe :all
compiles both non digest and digest assets while :primary
compiles only digest assets. 我相信
:all
编译非摘要和摘要资产,而:primary
只编译摘要资产。 Digest assets are the assets with the checksum added to the name. 摘要资产是将校验和添加到名称的资产。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.