Update changelog
This commit is contained in:
parent
9d5d1bb0f3
commit
284f908c32
3 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue