From bcd1811be46256dcf93f9842ecaff3acd7639426 Mon Sep 17 00:00:00 2001 From: Henrik Nygren Date: Tue, 6 Aug 2024 10:54:30 +0300 Subject: [PATCH] Update uglifier config --- config/environments/production.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 459bfdb5c..d97a1d336 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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.