parent
579ae8d988
commit
b9c06d865f
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ chdir('html')
|
||||||
for f in [i for i in listdir() if i.endswith('.html')]:
|
for f in [i for i in listdir() if i.endswith('.html')]:
|
||||||
|
|
||||||
# 1. Minify the index.html file using minify-html
|
# 1. Minify the index.html file using minify-html
|
||||||
minified_content = minify_html.minify(open(f, 'r').read(), minify_css=True, minify_doctype=False)
|
minified_content = minify_html.minify(open(f, 'r').read(), minify_css=True, do_not_minify_doctype=True)
|
||||||
|
|
||||||
# 2. Upload the file to an FTP server
|
# 2. Upload the file to an FTP server
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
requests
|
requests
|
||||||
minify-html
|
minify-html==0.15.0
|
Loading…
Reference in a new issue