Source code of my website
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

✨ : add post-build task with dependency on precompress

+6 -2
+6 -2
mise.toml
··· 28 28 description = "Build le site avec Hugo" 29 29 run = "hugo build $HUGO_OPTIONS" 30 30 31 + [tasks.post-build] 32 + description = "Post build hooks" 33 + depends = ["precompress"] 34 + 31 35 [tasks.precompress] 32 36 description = "Precompress static resources" 33 37 run = ''' 34 38 COMPRESSREGEX=".*(html|css|js|xml|ico|svg|md|png|webp|pdf)$" 35 - find public/ -type f -regextype egrep -regex $COMPRESSREGEX | xargs zstd -15 36 - find public/ -type f -regextype egrep -regex $COMPRESSREGEX | xargs zstd --format=gzip -15 39 + find public/ -type f -regextype egrep -regex $COMPRESSREGEX | xargs zstd -15 -f 40 + find public/ -type f -regextype egrep -regex $COMPRESSREGEX | xargs zstd --format=gzip -15 -f 37 41 ''' 38 42 39 43 [tasks.serve]