Update changelog

This commit is contained in:
Wilson Lin 2022-07-05 12:09:00 +10:00
parent 9d5d1bb0f3
commit 284f908c32
3 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@
## 0.10.0
- Drop unmatched closing tags instead of reinterpreting them as opening tags. This avoids the possibility of unintentionally creating a large deep tree due to malformed inputs where there are repeated unmatched closing tags (e.g. broken HTML template).
- Fix parallel minification in CLI mode, where some inputs were ignored.
- Output file names as they're processed in parallel mode from the CLI.
## 0.9.2

View File

@ -8,8 +8,8 @@ edition = "2018"
[dependencies]
minify-html = { path = "../rust/main" }
structopt = "0.3"
rayon = "1.5"
structopt = "0.3"
[profile.release]
lto = true

View File

@ -98,7 +98,7 @@ fn main() {
});
if args.inputs.len() <= 1 {
// single file mode or stdin mode
// Single file mode or stdin mode.
let input_name = args
.inputs
.get(0)
@ -155,6 +155,7 @@ fn main() {
out_file.write_all(&out_code),
"Could not save minified code"
);
// Just print the name, since this is the default output and any prefix becomes redundant. It'd also allow piping into another command (quite nice for something like `minify-html *.html | xargs gzip`), copying as list of files, etc.
println!("{}", input_name);
});
}