A platform for community discussion. Free, open, simple.
FIX: rake assets:precompile should be re-runnable
Sam5a8d2b5e4582
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rakeindex 75f7db109b1..abb83aff2b3 100644--- a/lib/tasks/assets.rake+++ b/lib/tasks/assets.rake@@ -117,7 +117,7 @@ endif ENV['COMPRESS_BROTLI']&.to_i == 1# different brotli versions use different parameters- ver_out, ver_err, ver_status = Open3.capture3('brotli --version')+ ver_out, _ver_err, ver_status = Open3.capture3('brotli --version')if !ver_status.success?# old versions of brotli don't respond to --versiondef brotli_command(path)@@ -125,7 +125,7 @@ if ENV['COMPRESS_BROTLI']&.to_i == 1endelsif ver_out >= "brotli 1.0.0"def brotli_command(path)- "brotli --quality=11 #{path} --output=#{path}.br"+ "brotli -f --quality=11 #{path} --output=#{path}.br"endelse# not sure what to do here, not expecting this