]> git.openstreetmap.org Git - rails.git/blobdiff - config/environments/production.rb
Re-enable minification of javascript assets
[rails.git] / config / environments / production.rb
index 4016be615f300a88036e6266e3cf6864da5ac6d3..407650d2d0417aa1e78036524b3f06cacbce0685 100644 (file)
@@ -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?
 
   # 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.
   # config.assets.css_compressor = :sass
 
   # Do not fallback to assets pipeline if a precompiled asset is missed.