- Added CSS in html

- Embed using platformIO
- new minify (also css)
This commit is contained in:
Rene Zeldenthuis
2023-04-16 17:17:28 +02:00
parent 72482080cf
commit 621dbe466e
15 changed files with 326 additions and 441 deletions

20
minify.py Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/python3
import sys
import minify_html
if (len(sys.argv) <= 2):
print('Usage: minify.py input.html output.html')
sys.exit(1)
input_file = open(sys.argv[1], 'r')
output_file = open(sys.argv[2], 'w')
html = input_file.read()
input_file.close()
html_minified = minify_html.minify(html, minify_css=True)
output_file.write(html_minified)
output_file.close()
print('Done.')