Skip compressing theme test files (#13619)

This commit is contained in:
Penar Musaraj 2021-07-02 12:16:16 -04:00 committed by GitHub
parent 6be956339c
commit 02999f5eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)