DEV: Re-enable uglifier for non-precompiled assets

approved
#1

DEV: Re-enable uglifier for non-precompiled assets

Keep harmony disabled

diff --git a/config/environments/production.rb b/config/environments/production.rb
index 2f92056..75c3a69 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -14,6 +14,8 @@ Discourse::Application.configure do
   # Disable Rails's static asset server (Apache or nginx will already do this)
   config.public_file_server.enabled = GlobalSetting.serve_static_assets || false
 
+  config.assets.js_compressor = :uglifier
+
   # stuff should be pre-compiled
   config.assets.compile = false

GitHub sha: 33bd4716

1 Like
Approved #2
#3

This commit has been mentioned on Discourse Meta. There might be relevant details there: