Enable gzip compression (thanks louisjc, harding)

This commit is contained in:
Saivann 2015-06-24 22:16:18 -04:00
parent 5d8b0cfd12
commit 94360fdbfd

View file

@ -64,6 +64,7 @@ do
# Update site and exit if site has been successfully built # Update site and exit if site has been successfully built
if [ -e "$WORKDIR/_builddone" ]; then if [ -e "$WORKDIR/_builddone" ]; then
find $WORKDIR/_site \( -iname '*.html' -o -iname '*.css' -o -iname '*.js' -o -iname '*.svg' -o -iname '*.rss' -o -iname '*.xml' \) -exec gzip -9 -k {} \;
rsync --delete -zrt $WORKDIR/_site/ $DESTDIR/ rsync --delete -zrt $WORKDIR/_site/ $DESTDIR/
exit exit
fi fi