From ffa256e51aabcbe7131750488ef4ff7732c81933 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 9 Jun 2026 12:30:03 +0100 Subject: [PATCH] Restore javascript minimisation in production Fixes #7143. --- config/environments/production.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 9f4dd50a6..5a53bd94c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -17,6 +17,9 @@ Rails.application.configure do # Turn on fragment caching in view templates. config.action_controller.perform_caching = true + # Compress JavaScripts using a preprocessor. + config.assets.js_compressor = Terser.new + # Cache assets for far-future expiry since they are all digest stamped. config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" } -- 2.47.3