From a722ac4003c90bcd6fcf6eca63b715005b05874b Mon Sep 17 00:00:00 2001 From: Fritz Freiheit Date: Tue, 15 Dec 2020 13:55:59 -0500 Subject: [PATCH] Update production.rb Add: # config.assets.js_compressor = :uglifier config.assets.js_compressor = Uglifier.new(harmony: true) # see Uglifier README.md --- config/environments/production.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 72966612..fb437cba 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -24,7 +24,8 @@ 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 + config.assets.js_compressor = Uglifier.new(harmony: true) # see Uglifier README.md # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed.