mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Compress svg files ahead of time
Previously forgot to include .svg files in the Makefile when generating precompressed files for "gzip_static" and "brotli_static" This commit includes them.
This commit is contained in:
parent
8a1903c85b
commit
c7bc26ed00
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -64,10 +64,10 @@ test: lint-css hint-devserver check-links
|
||||||
build: hugo
|
build: hugo
|
||||||
# gzip_static + max zopfli compression
|
# gzip_static + max zopfli compression
|
||||||
ifndef NO_STATIC
|
ifndef NO_STATIC
|
||||||
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' -o -name '*.asc' -o -name '*.webmanifest' \
|
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' -o -name '*.asc' -o -name '*.webmanifest' -o -name "*.svg" \
|
||||||
| grep -v gemini \
|
| grep -v gemini \
|
||||||
| xargs zopfli --i$(ZOPFLI_ITERATIONS) --gzip
|
| xargs zopfli --i$(ZOPFLI_ITERATIONS) --gzip
|
||||||
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' -o -name '*.asc' -o -name '*.webmanifest' \
|
find $(OUTPUT_DIR) -type f -name '*.html' -o -name '*.css' -o -name '*.xml' -o -name '*.txt' -o -name '*.asc' -o -name '*.webmanifest' -o -name "*.svg" \
|
||||||
| grep -v gemini \
|
| grep -v gemini \
|
||||||
| xargs brotli -q 11
|
| xargs brotli -q 11
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue