Created
August 12, 2018 07:38
-
-
Save blikenoother/d17c2928bdf51e51290ea64cdf4640d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
OLDIFS=$IFS | |
IFS=$'\n' | |
for FILE in $(find public -type f -iname '*.css' -o -iname '*.js' -o -iname '*.svg' -o -iname '*.json'); do | |
echo -n "Compressing ${FILE}..." | |
brotli --input ${FILE} --force --output ${FILE}.br; | |
echo "done." | |
done | |
IFS=$OLDIFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment