jakstys.lt/scripts/build
2023-04-03 22:03:39 +03:00

15 lines
326 B
Bash
Executable File

#!/usr/bin/env bash
set -xeuo pipefail
cd "$(git rev-parse --show-toplevel)"
hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log
cd public
find . \
-name '*.html' -or \
-name '*.xml' -or \
-name '*.txt' -or \
-name '*.css' -or \
-name '*.map' | parallel --eta "zopfli {} && brotli {}"