Suggest defining config.assets.css_compressor = nil #129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are migrating our project away from sassc-rails towards cssbundling-rails with sass (and in preparation for introducing tailwind in parallel with that while we rewrite everything), however we still use administrate which as of writing still depends on sassc-rails.
At first we defined
config.assets.css_compressor = nil
by uncommenting the line inconfig/environments/production.rb
, but only later realized this did not affect the test environment, which is the reason why our test suite was still failing with errors such asActionView::Template::Error: Error: Function rgb is missing argument $green
, and I believe other seemingly incomprensible errors such asActionView::Template::Error: Asset X was not declared to be precompiled in production
even though they were included in the Sprockets manifest. Perhaps this PR will prevent someone else from encountering the same misfortune.Additional idea: how about having the gem raise a warning if config.assets.css_compressor is not nil?