summaryrefslogtreecommitdiff
path: root/Makefile
blob: 104b8ff770c5c5da69f57df71e11423a99915221 (plain)
1
2
3
4
5
6
7
8
9
10
FINDARGS= \( -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js" \)

all:
	rm -rf public/*
	hugo
	for f in `find public/ -type f $(FINDARGS)`; do \
		echo "Compressing $$f..." ;                 \
		gzip --keep --force -9 $$f ;                \
		brotli --keep --force -Z $$f ;              \
	done