Update build.sh

This commit is contained in:
Valentin Brandl 2017-06-20 18:08:03 +02:00
parent 860c3889e2
commit 0b8e73fcd6
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -6,4 +6,4 @@ HUGO_BIN="hugo"
${HUGO_BIN}
# ahead of time compression and timestamp fixing
find public/ -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' -o -name '*.xml' -o -name '*.svg' \) -exec gzip -v -k -f --best {} \; -exec touch -r {} "{}.gz" \;
find public/ -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' -o -name '*.xml' -o -name '*.svg' \) -exec gzip -v -k -f --best "{}" \; -exec touch -r "{}" "{}.gz" \;