From 9609a7615ba0c60e59c92a8578d44840126253de Mon Sep 17 00:00:00 2001 From: Sli Date: Sun, 13 Oct 2024 15:52:54 +0200 Subject: [PATCH] Don't apply js minification to webpack generated files --- staticfiles/processors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/staticfiles/processors.py b/staticfiles/processors.py index dd5b73c1..abe4b580 100644 --- a/staticfiles/processors.py +++ b/staticfiles/processors.py @@ -66,7 +66,10 @@ class JS: @staticmethod def minify(): to_exec = [ - p for p in settings.STATIC_ROOT.rglob("*.js") if ".min" not in p.suffixes + p + for p in settings.STATIC_ROOT.rglob("*.js") + if ".min" not in p.suffixes + and (settings.STATIC_ROOT / "webpack") not in p.parents ] for path in to_exec: p = path.resolve()