diff --git a/config/environments/production.rb b/config/environments/production.rb index e02b8f942d..2e08f8e029 100644 --- a/config/environments/production.rb +++ b/config/environments/production.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