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:
parent
d2c03d3751
commit
c16e40274f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue