feat/flask: compile sass only in debug mod

This commit is contained in:
2025-10-05 11:23:14 +03:00
parent 1e5c3a4022
commit 00946b4579
+4 -3
View File
@@ -22,9 +22,10 @@ STATUS_FETCH_DELAY_SEC = 300 # 5 minutes
app = Flask(__name__)
css = sass.compile(filename="static/style.scss")
with open("static/style.css", "w", encoding="utf-8") as f:
f.write(css)
if app.debug:
css = sass.compile(filename="static/style.scss")
with open("static/style.css", "w", encoding="utf-8") as f:
f.write(css)
# ---------- LATEST COMMIT DATE (MINIMAL ADD-ON) -----------------------------