2021-09-28 17:45:56 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2021-10-05 19:12:32 -05:00
|
|
|
files=$(find public/ -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js" -o -name "*.svg")
|
2021-09-28 17:45:56 -05:00
|
|
|
|
|
|
|
printf '%s\n' "$files" | parallel $@ "echo 'GZIP {}' && gzip -fnk {}"
|
|
|
|
printf '%s\n' "$files" | parallel $@ "echo 'BROTLI {}' && brotli -fZk {}"
|