Skip to content

Commit

Permalink
compress static files in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jul 21, 2021
1 parent c134314 commit 42df781
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions process-static
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 42df781

Please sign in to comment.