Simplified code that generates data.json

This commit is contained in:
Gunnar Skjold
2021-01-17 15:08:01 +01:00
parent f9597c786e
commit decc4788a7
5 changed files with 190 additions and 280 deletions

View File

@@ -37,7 +37,7 @@ for filename in os.listdir(webroot):
content = html_minify(content)
elif filename.endswith(".css"):
content = css_minify(content)
elif filename.endswith(".js") and filename != 'gaugemeter.js':
elif (filename.endswith(".js") and filename != 'gaugemeter.js') or filename.endswith(".json"):
content = js_minify(content)
except:
print("WARN: Unable to minify")