X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c672a73de3f376d0981c5bec9cdc3e97d5d0f9b7..a9b00e16e70707e398d475352d68ed9da86dec3b:/config/environments/production.rb?ds=sidebyside diff --git a/config/environments/production.rb b/config/environments/production.rb index 4016be615..ca186492e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -22,7 +22,8 @@ Rails.application.configure do # Apache or NGINX already handles this. config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? - # Compress CSS using a preprocessor. + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. @@ -72,10 +73,6 @@ Rails.application.configure do # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify