diff --git a/config/environments/production.rb b/config/environments/production.rb index 4863b1d65..acd296ae2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -12,7 +12,12 @@ Discourse::Application.configure do # Disable Rails's static asset server (Apache or nginx will already do this) config.serve_static_assets = GlobalSetting.serve_static_assets - config.assets.js_compressor = Uglifier.new(output: {max_line_len: 1024}) + if defined?(Uglifier) + config.assets.js_compressor = Uglifier.new(output: {max_line_len: 1024}) + else + config.assets.js_compressor = :uglifier + end + config.assets.css_compressor = :sass # stuff should be pre-compiled