Skip to content
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

resolve_assets_in_css_urls option ignored in config/initializers (in a Rails 6.0 project) #512

Open
slondr opened this issue Sep 19, 2022 · 0 comments

Comments

@slondr
Copy link

slondr commented Sep 19, 2022

I'm in the process of updating a Rails 5.2 application to Rails 6.0, which necessitates updating from sprockets-rails 3.2.2 to sprockets-rails 3.4.2; sadly this upgrade breaks my application, as it overwrites the urls in @import statements in CS to absolute urls which do not mirror the relative urls they are overwriting. A config option was introduced to undo this behavior, but, I am assuming due to the same circumstances discussed in #36 and #63 and rails/rails#10428, this setting is ignored when set in config/initializers/assets.rb. Moving the setting to application.rb fixes the bug, but it sticks out like a sore thumb in that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant