update build.py

This commit is contained in:
naielv
2025-08-15 16:59:17 +02:00
parent bd9db0df22
commit 8accafc599

View File

@@ -23,7 +23,8 @@ for asset in ASSETS:
if asset != "sw.js":
PREFETCH += f'<link rel="prefetch" href="{asset}" />\n'
shutil.rmtree("dist")
if os.path.exists("dist"):
shutil.rmtree("dist")
shutil.copytree("assets","dist", dirs_exist_ok=True)
def replace_handles(string):