This commit is contained in:
naielv
2025-08-15 16:56:47 +02:00
parent 014bc50690
commit 7794d53802
2 changed files with 9 additions and 1 deletions

View File

@@ -22,7 +22,9 @@ for asset in ASSETS:
if asset != "sw.js":
PREFETCH += f'<link rel="prefetch" href="{asset}" />\n'
os.system("rm -r dist ; mkdir -p dist ; cp -r assets/* dist/")
shutil.rmtree("dist")
shutil.copytree("assets","dist", dirs_exist_ok=True)
def replace_handles(string):
string = string.replace("%%PREFETCH%%", PREFETCH)
string = string.replace("%%VERSIONCO%%", VERSIONCO)