From 65a249b6e0071d8905efb63b6184848f293e3e5f Mon Sep 17 00:00:00 2001 From: "W. Scott Meeks" Date: Tue, 17 May 2022 13:56:49 -0400 Subject: [PATCH] Workaround for error in rake assets:precompile See: https://github.com/lautis/uglifier/issues/127#issuecomment-352224986 --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index db0c5f444..288f6133d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,7 +19,7 @@ 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.