-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add assets.resolve_assets_in_css_urls
configuration option to allow disabling AssetUrlProcessor
#489
Add assets.resolve_assets_in_css_urls
configuration option to allow disabling AssetUrlProcessor
#489
Conversation
I think this is a good option, but I don't see reverting what's now been released and out in the wild. If the 3.4.x series breaks things for you, you can set this option to avoid having the processor applied. But otherwise it's applied. |
We're introducing a new configuration option `assets.rewrite_css_urls` to allow users to opt out of the new `AssetUrlProcessor` (by configuring that option to `false`).
f3c88fb
to
a94fd77
Compare
Ok, I dropped that change, added tests, and took the PR out of draft state. |
This is looking good. We should document the option as well. Also, I think going with |
to use language that mirrors the new `resolve_assets_in_css_urls` configuration option
assets.rewrite_css_urls
configuration option to make AssetUrlProcessor
opt-inassets.resolve_assets_in_css_urls
configuration option to make AssetUrlProcessor
opt-in
assets.resolve_assets_in_css_urls
configuration option to make AssetUrlProcessor
opt-inassets.resolve_assets_in_css_urls
configuration option to allow AssetUrlProcessor
to be disabled
assets.resolve_assets_in_css_urls
configuration option to allow AssetUrlProcessor
to be disabledassets.resolve_assets_in_css_urls
configuration option to allow disabling AssetUrlProcessor
Ok, renamed the option to |
As reported in #478 / #486, the introduction of the
AssetUrlProcessor
in #476 broke some folks' CSS assets when they upgraded beyond sprockets-rails v3.2.2, but it was not released in a new major version.To remedy this, let's makeAssetUrlProcessor
be opt-in for now with the plan to change it to opt-out in the next major version. In this PR, I'm proposing the addition of a newassets.rewrite_css_urls
configuration option to control whether or notAssetUrlProcessor
is registered. We can default it tofalse
in sprockets-rails v3.x and change the default totrue
in v4.0.Per #489 (comment), we'll roll forward with defaulting
AssetUrlProcessor
to enabled, but it can be disabled by setting a newassets.resolve_assets_in_css_urls
configuration option tofalse
.