mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +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
|
||||
# gzip_static + max zopfli compression
|
||||
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 \
|
||||
| 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 \
|
||||
| xargs brotli -q 11
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue