Reducing memory footprint to fit ESP32

This commit is contained in:
Gunnar Skjold
2022-07-19 07:40:13 +02:00
parent 6975714922
commit 64132d5ce3
6 changed files with 5 additions and 143 deletions

View File

@@ -59,6 +59,8 @@ for filename in os.listdir(webroot):
try:
if filename.endswith(".html"):
content = html_minify(content)
if filename.endswith(".svg"):
content = html_minify(content)
elif filename.endswith(".css"):
content = css_minify(content)
elif (filename.endswith(".js") and filename != 'gaugemeter.js') or filename.endswith(".json"):