From a633861e1fe402829e2b3a1bd511a2024992e3fa Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Tue, 17 Apr 2018 09:05:19 +0200 Subject: [PATCH] Change JS compressor from :uglifier to Uglifier.new(harmony: true) This should fix the command rails assets:precompile for production environment. --- 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 1d305a383..cef4bab0b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -47,7 +47,7 @@ Rails.application.configure do # config.action_dispatch.rack_cache = true # 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.