Don't apply js minification to webpack generated files

This commit is contained in:
Antoine Bartuccio 2024-10-13 15:52:54 +02:00 committed by Bartuccio Antoine
parent 361a06e5b3
commit 9609a7615b

View File

@ -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()