blob: 6fd2934aa833288eb25c2c8e626e699aa12fe1ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
FINDARGS= \( -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js" \)
all:
hugo
for f in `find public/ -type f $(FINDARGS)`; do \
echo "Compressing $$f..." ; \
gzip --keep --force -9 $$f ; \
brotli --keep --force -Z $$f ; \
done
@echo "###########################################"
@echo "### If you (re)moved files, remember to ###"
@echo "#### delete them manually from public/ ####"
@echo "###########################################"
|