Skip to content

Commit

Permalink
Update uglifier config
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Aug 6, 2024
1 parent 7c70c08 commit bcd1811
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
config.serve_static_files = false

# Compress JavaScripts and CSS.
config.assets.js_compressor = Uglifier.new(harmony: true)
config.assets.configure do |env|
env.js_compressor = :uglifier
env.css_compressor = :sass
end
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
Expand Down

0 comments on commit bcd1811

Please sign in to comment.