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