Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ values:
- `br` or `brotli`
- `de` or `deflate`
- `gz` or `gzip`
- `zstd`
- `zst` or `zstd`

The compression quality can be specified by adding the value after a colon:
By default, the highest supported compression quality is used for each algorithm.
To specify a different quality, add the value after a colon like so:

```
precompress -c gzip:5 .
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn parse_compression(compression: Option<Vec<String>>) -> (Algorithms, Quality)
quality.gzip = q;
}
}
"zstd" => {
"zst" | "zstd" => {
algs.zstd = true;
if let Some(q) = q {
quality.zstd = q;
Expand Down