compress static files in parallel
This commit is contained in:
parent
770504063c
commit
93f0d39a8d
@ -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 {} \;
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user