feat: add Ship-Class Silhouettes and Red Sunk Markers
This commit is contained in:
@@ -7,7 +7,7 @@ from pathlib import Path
|
||||
|
||||
ROOT = Path(env.subst("$PROJECT_DIR"))
|
||||
DATA = ROOT / "data"
|
||||
ASSETS = ("index.html", "styles.css", "app.js")
|
||||
ASSETS = ("index.html", "styles.css", "app.js", "ship-sprite.svg")
|
||||
|
||||
|
||||
def minify_html(source):
|
||||
@@ -58,7 +58,7 @@ def compress_assets():
|
||||
text = minify_html(text)
|
||||
elif asset.endswith(".css"):
|
||||
text = minify_css(text)
|
||||
else:
|
||||
elif asset.endswith(".js"):
|
||||
text = minify_js(text)
|
||||
(DATA / f"{asset}.gz").write_bytes(gzip.compress(text.encode("utf-8"), mtime=0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user