DEV: Temporarily disable uglifier for non-precompiled assets

approved
#1

DEV: Temporarily disable uglifier for non-precompiled assets

This is causing performance issues which require further investigation

diff --git a/config/environments/production.rb b/config/environments/production.rb
index 7e12294..2f92056 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -14,9 +14,6 @@ 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
 
-  require 'uglifier'
-  config.assets.js_compressor = Uglifier.new(harmony: true)
-
   # stuff should be pre-compiled
   config.assets.compile = false

GitHub sha: f12709e2

1 Like
Approved #2
#3

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