compress static files in parallel

This commit is contained in:
Daniel Micay 2021-07-21 16:37:31 -04:00
parent 770504063c
commit 93f0d39a8d

View File

@ -40,6 +40,5 @@ for file in static_tmp/**/*.@(atom|xml); do
xmllint --noblanks "$file" --output "$file" xmllint --noblanks "$file" --output "$file"
done done
find static_tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' \ find static_tmp -regex '.+\.\(atom\|css\|html\|ico\|js\|json\|mjs\|pdf\|svg\|txt\|webmanifest\|xml\)' |
-exec zopfli {} \; -exec touch -r {} {}.gz \; \ parallel "brotli -k {}; zopfli {} && touch -r {} {}.gz"
-exec brotli -k {} \;