From 42df78143d67413d900960e33db6096074385b38 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 21 Jul 2021 16:40:22 -0400 Subject: [PATCH] compress static files in parallel --- process-static | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/process-static b/process-static index 8b68fb71..56b1d33a 100755 --- a/process-static +++ b/process-static @@ -34,5 +34,4 @@ find static_tmp -name '*.html' -exec html-minifier --collapse-whitespace \ find static_tmp -name '*.xml' -exec xmllint --noblanks {} --output {} \; find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|svg\|txt\|webmanifest\|xml\)' \ - -exec zopfli {} \; -exec touch -r {} {}.gz \; \ - -exec brotli -k {} \; + parallel "brotli -k {}; zopfli {} && touch -r {} {}.gz"