From 9bd50bab916d43ed3f94bdbecda7bd8e0018f550 Mon Sep 17 00:00:00 2001 From: Just Me Date: Fri, 8 Sep 2023 18:06:40 +0300 Subject: [PATCH] Configure js compressor to support ES6 syntax --- 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 5fdbf836..de4eb364 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -26,7 +26,7 @@ # Compress CSS using a preprocessor. # config.assets.css_compressor = :sass - config.assets.js_compressor = :uglifier + config.assets.js_compressor = Uglifier.new harmony: true # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false