18 lines
517 B
Bash
Executable File
18 lines
517 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
|
|
hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log
|
|
# https://github.com/gohugoio/hugo/issues/8734
|
|
#hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log \
|
|
# --buildDrafts --config config.yaml,debugconfig.yaml -d public/zz
|
|
|
|
cd public
|
|
|
|
find . \
|
|
-name '*.html' -or \
|
|
-name '*.xml' -or \
|
|
-name '*.txt' -or \
|
|
-name '*.css' -or \
|
|
-name '*.map' | parallel --eta "zopfli {} && brotli {}"
|