From 02999f5eb2b30503ad8d1a17cb2fe95956fce3be Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Fri, 2 Jul 2021 12:16:16 -0400 Subject: [PATCH] Skip compressing theme test files (#13619) --- lib/tasks/assets.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 85debe82334..534e055bf9a 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -281,6 +281,8 @@ task 'assets:precompile' => 'assets:precompile:before' do max_compress = max_compress?(info["logical_path"], locales) if File.exists?(_path) STDERR.puts "Skipping: #{file} already compressed" + elsif file.include? "discourse/tests" + STDERR.puts "Skipping: #{file}" else proc.call do start = Process.clock_gettime(Process::CLOCK_MONOTONIC)