mirror of
https://git.boba.best/boba.best/boba.best.git
synced 2025-06-30 16:27:29 -05:00
20 lines
280 B
Bash
Executable File
20 lines
280 B
Bash
Executable File
#!/bin/sh
|
|
|
|
files=$(find public/ -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js")
|
|
|
|
gz() {
|
|
echo "GZIP $1"
|
|
gzip -fnk $1
|
|
}
|
|
|
|
br() {
|
|
echo "BROTLI $1"
|
|
brotli -fZk $1
|
|
}
|
|
|
|
export -f gz
|
|
export -f br
|
|
|
|
parallel $@ gz {} <<< $files
|
|
parallel $@ br {} <<< $files
|