GuillaumeGomez / minifier-rs

Minifier tool/lib for JS/CSS/JSON files
MIT License
86 stars 16 forks source link

more options added to cli #97 #109

Closed BiswajitThakur closed 2 months ago

BiswajitThakur commented 3 months ago

Options

$ cargo run --release -- --help
    Finished `release` profile [optimized] target(s) in 0.03s
     Running `target/release/minifier --help`
Minifier tool/lib for JS/CSS/JSON files

Usage: minifier [OPTIONS] <FILE>...

Arguments:
  <FILE>...
          Input Files...

Options:
  -t, --type <FileType>
          File Extention without dot. This option is optional.
          If you don't provide this option, all input files
          type will detect via extension of input file.

          Possible values:
          - css:  All the files will be consider as CSS, regardless of their extension.
          - js:   All the files will be consider as JavaScript, regardless of their extension.
          - json: All the files will be consider as JSON, regardless of their extension.

  -o, --out <output>
          Output file or directory (Default is parent dir of input files)

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Screencast from 08-03-2024 07:00:52 PM.webm

GuillaumeGomez commented 2 months ago

Thanks!