update
This commit is contained in:
4
build.py
4
build.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user