static: compress more files
This commit is contained in:
parent
c22db9b832
commit
4f0a6a0a83
@ -24,7 +24,10 @@ stdenv.mkDerivation {
|
|||||||
./manage.py collectstatic
|
./manage.py collectstatic
|
||||||
./manage.py compress
|
./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 \
|
${findutils}/bin/xargs -P''$(${coreutils}/bin/nproc) -I{} sh -c \
|
||||||
"${zopfli}/bin/zopfli {} && ${brotli}/bin/brotli {}"
|
"${zopfli}/bin/zopfli {} && ${brotli}/bin/brotli {}"
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user