Created
August 31, 2017 10:03
-
-
Save ykzts/0191631fd377ab614aa8a4c4e62f8ae1 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
#!/bin/sh | |
for f in $(find public/packs -name *.js -or -name *.css -type f); do | |
if [ ! -f ${f}.br ]; then | |
brotli --quality 10 --input ${f} --output ${f}.br | |
chmod 644 ${f}.br | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment