1
Fork 0

static: compress more files

This commit is contained in:
Motiejus Jakštys 2024-01-17 00:03:36 +02:00
parent c22db9b832
commit 4f0a6a0a83
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,10 @@ stdenv.mkDerivation {
./manage.py collectstatic
./manage.py compress
${findutils}/bin/find static/CACHE -name '*.css' | \
${findutils}/bin/find static/ \
-name '*.css' -or \
-name '*.js' -or \
-name '*.svg' | \
${findutils}/bin/xargs -P''$(${coreutils}/bin/nproc) -I{} sh -c \
"${zopfli}/bin/zopfli {} && ${brotli}/bin/brotli {}"
'';