rails/rails — Issue #3419: Rake assets:precompile configuration, make assets:precompile:nondigest optional.
Author: davidjrice
Created: 2011-10-24 12:42:02+00:00
State: open

Hi guys,

In Reading Issue #3225 I see the consensus is that we should always precompile the nondigest assets in an application.

I agree, that it's going to be the most common use case to compile the nondigest versions (if people need them accessible for, stylesheets that are not using .scss or .erb. Or if they are needed for places where the asset_path helper is not available. (like 404 pages).

Am wondering though if it would be useful to have a configuration option to specify what style of precompilation to use. For example:

config.assets.precompilation_type = :all # any of [all, :digest, :nondigest]

I think making this configurable would benefit people wishing to shave any time possible off their deployments.

Am willing to help put together a patch for this if it's something that would be useful for others too. Thanks.