CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets
Built with ❤︎ by Tiaan and contributors
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.
$ npm install --global caaf
# OR
$ yarn global add caaf
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
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.
Licensed under the MIT License.