7 lines
243 B
Bash
Executable File
7 lines
243 B
Bash
Executable File
#!/bin/sh
|
|
|
|
files=$(find public/ -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js")
|
|
|
|
printf '%s\n' "$files" | parallel $@ "echo 'GZIP {}' && gzip -fnk {}"
|
|
printf '%s\n' "$files" | parallel $@ "echo 'BROTLI {}' && brotli -fZk {}"
|