caaf
v1.0.1
Published
CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets
Downloads
2
Maintainers
Readme
About
This basic CLI tool recursively walks a given directory and:
- Minifies HTML using html-minifier
- Minifies and removes unused CSS using purify-css
- Minifies JS using uglify-js
- Minifies png, jpeg, jpg, gif & svg images using imagemin
It is intended to be run as a post script on static assets.
Install
$ npm install --global caaf
# OR
$ yarn global add caaf
Usage
After install run caaf
.
$ caaf
This will optimize all assets in the current directory.
You can also specify a input directory:
$ caaf inputDir
And output directory:
$ caaf inputDir outputDir
Contribute
Contributions are welcome. Please open up an issue or create PR if you would like to help out.
Note: If editing the README, please conform to the standard-readme specification.
License
Licensed under the MIT License.