1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Compress JSON files too

This commit is contained in:
Rohan Kumar 2023-08-21 11:27:07 -07:00
parent 1228578858
commit b4038cb54b
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -10,7 +10,7 @@ set -e -u
output_dir="$1"
format="$2"
alias find_compressible='find "$output_dir" -type f \( -name "*.html" -o -name "*.txt" -o -name "*.xml" -o -name "*.webmanifest" -o -name "*.*.svg" \)'
alias find_compressible='find "$output_dir" -type f \( -name "*.html" -o -name "*.txt" -o -name "*.xml" -o -name "*.webmanifest" -o -name "*.*.svg" -o -name "*.json" \)'
if [ "$format" = "gzip" ]; then
compress_level="$3"