diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 2d9321357d..bee008922f 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -45,6 +45,8 @@ Openfoodnetwork::Application.configure do # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) # config.assets.precompile += %w( search.js ) + config.assets.js_compressor = Uglifier.new(mangle: false) + # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false