Is it possible to add DirectiveProcessor to the end of processors chain?
It could be useful in case you want to add some conditional assests.
See, for instance, that question on the StackOverflow - Exclude certain assets from pipeline in development environment?
Just, curious. Of course, there still an option to include different files in the layout.
The answer is yes, but if this is what you are trying to do:
<% if Rails.env.production? %>
//= require google_analytics_snippet
<% end %>
try this instead:
<% if Rails.env.production?
Is there also a way to include a tree using a condition? I searched through the code and only found the require_asset method.