Closed ChrisZou closed 4 years ago
Currently I don't have plans to implement this. It is difficult to do, because there are a lot of factors that can affect how assets are compiled. For example, even if the asset files themselves haven't changed, upgrades to gems or changes to app configuration can affect the compilation step.
I assume that your goal is to speed up deployment times? In that case there are some things you can do to improve the speed of the rake assets:precompile
task:
:linked_dirs
: tmp/cache
, public/assets
.In my case, for a medium-sized app, the rake assets:precompile
task runs in 2-3 seconds if no assets have changed.
I see. That was a fair point. Thank you for the explanation. @mattbrictson
Hi, I found there is a
conditionally_migrate
option to let deployments migration database only if db/migration files changed. Do you consider adding a similar option for preprocessing assets, so thatassets:preprocess
task only runs if assets files changed?