~aasg/nixexprs

ref: 30ebec15183581a33bd0af48cbbcc082a8b35966 nixexprs/pkgs/build-support/aasg-brotlify/setup-hook.sh -rw-r--r-- 183 bytes
30ebec15 — Aluísio Augusto Silva Gonçalves aasg-brotlify: New hook to auto-compress static websites 4 months ago
                                                                                
1
2
3
4
5
6
postInstallHooks+=(aasg-brotlify)

aasg-brotlify() {
	if [[ -n "${dontBrotlify:-}" ]]; then return; fi
	fd "" "$out" -t f -e html -e css -e js -e css.map -e js.map -X brotli --best
}