From 89decec6de7a7b6bb4d39858ef52acd04597f775 Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Fri, 16 Aug 2024 14:12:35 -0700 Subject: [PATCH] Fix deploy as per https://github.com/lautis/uglifier/issues/185 --- config/environments/production.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index ce901c5e..b37145c6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -25,7 +25,11 @@ config.public_file_server.enabled = true # Compress JavaScripts and CSS. - config.assets.js_compressor = Uglifier.new(harmony: true) + # 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.