From dc7253d0b71f25c2e9a4547d414fa18390b74fbf Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 12 Jul 2021 20:07:26 -0400 Subject: For some reason I gotta do this thing with Uglifier I guess --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/environments/production.rb b/config/environments/production.rb index 03d15d1..182b74e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -24,7 +24,7 @@ Rails.application.configure do config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier + config.assets.js_compressor = Uglifier.new(harmony: true) # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. -- cgit 1.4.1