1.1.0 • Published 4 years ago
@wazabix/minify-cli v1.1.0
minify-cli
File minifier
Install
$ npm i -g @wazabix/minify-cli
Command line reference
- Package version
$ minify -v
$ minify --version
- Help
$ minify -h
$ minify --help
- Minify a file
$ minify [ file ] [ output ] [ options ]
- file argument is the file you want to minify
output argument is not mandatory, it allows you to choose the name of the output file
options mandatory, it allows you to specify which file format you want to minify
- -js / --javascript
- -html / --HypertextMarkupLanguage
- -css / --CascadingStyleSheets
Exemple
I want to minify a JS file
$ minify index.js -js
It doesn't matter where you place the "-js" option in the command
Minified output file : "index.min.js"
Other Exemple
I want to minify a css file
$ minify -css index.css min.css
Minified output file : "min.css"