1.1.0 • Published 5 years ago
@wazabix/minify-cli v1.1.0
minify-cli
File minifier
Install
$ npm i -g @wazabix/minify-cliCommand 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 -jsIt 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.cssMinified output file : "min.css"