From 4f0a6a0a83102cc710ab4e7bc4745a205c1e7a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 17 Jan 2024 00:03:36 +0200 Subject: [PATCH] static: compress more files --- pkgs/e11sync-static.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/e11sync-static.nix b/pkgs/e11sync-static.nix index ba29f71..b0d6d39 100644 --- a/pkgs/e11sync-static.nix +++ b/pkgs/e11sync-static.nix @@ -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 {}" '';