mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Don't apply js minification to webpack generated files
This commit is contained in:
parent
361a06e5b3
commit
9609a7615b
@ -66,7 +66,10 @@ class JS:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def minify():
|
def minify():
|
||||||
to_exec = [
|
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:
|
for path in to_exec:
|
||||||
p = path.resolve()
|
p = path.resolve()
|
||||||
|
Loading…
Reference in New Issue
Block a user