Skip to content

Commit 67ebcf9

Browse files
committed
Stop overriding the app css_compressor setting
1 parent 3f2223f commit 67ebcf9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/sassc/rails/railtie.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ class Railtie < ::Rails::Railtie
5353
end
5454

5555
initializer :setup_compression, group: :all do |app|
56-
app.config.assets.css_compressor = nil
57-
58-
if !Rails.env.development?
56+
unless Rails.env.development?
5957
app.config.assets.css_compressor ||= :sass
6058
else
6159
# Use expanded output instead of the sass default of :nested unless specified

test/sassc_rails_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def setup
1313
@app.config.log_level = :debug
1414

1515
# reset config back to default
16+
@app.config.assets.css_compressor = nil
1617
@app.config.sass = ActiveSupport::OrderedOptions.new
1718
@app.config.sass.preferred_syntax = :scss
1819
@app.config.sass.load_paths = []

0 commit comments

Comments
 (0)