1
0
Fork 0
mirror of https://github.com/Findus23/lw1.at.git synced 2024-09-08 02:53:46 +02:00

add brotli compression

This commit is contained in:
Lukas Winkler 2022-05-15 23:07:39 +02:00
parent d2c03d3751
commit c16e40274f
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -7,6 +7,7 @@ def compress_files():
for file in output_dir.glob("**/*"):
if file.is_dir():
continue
if file.suffix not in {".html", ".css", ".js", ".xml", ".map", ".json", ".woff", ".woff2", ".ttf"}:
if file.suffix not in {".html", ".css", ".js", ".xml", ".map", ".json", ".woff", ".woff2", ".ttf", ".svg"}:
continue
run(["gzip", "-k", "-f", "--best", str(file)], check=True)
run(["brotli", "-f", "--best", str(file)], check=True)