1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-03-28 16:17:11 +00:00

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

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