https://github.com/tiaanduplessis/caaf
CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets
https://github.com/tiaanduplessis/caaf
css gif html jpeg js minification optimization png purifier svg
Last synced: about 1 month ago
JSON representation
CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets
- Host: GitHub
- URL: https://github.com/tiaanduplessis/caaf
- Owner: tiaanduplessis
- License: mit
- Created: 2017-05-14T12:15:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T21:44:01.000Z (about 6 years ago)
- Last Synced: 2025-10-26T21:39:28.866Z (8 months ago)
- Topics: css, gif, html, jpeg, js, minification, optimization, png, purifier, svg
- Language: JavaScript
- Size: 208 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
caaf
CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets
Table of Contents
Table of Contents
## About
This basic CLI tool recursively walks a given directory and:
- Minifies HTML using [html-minifier](https://github.com/kangax/html-minifier)
- Minifies and removes unused CSS using [purify-css](https://github.com/purifycss/purifycss)
- Minifies JS using [uglify-js](https://github.com/mishoo/UglifyJS)
- Minifies png, jpeg, jpg, gif & svg images using [imagemin](https://github.com/imagemin/imagemin)
It is intended to be run as a post script on static assets.
## Install
```sh
$ npm install --global caaf
# OR
$ yarn global add caaf
```
## Usage
After install run `caaf`.
```sh
$ caaf
```
This will optimize all assets in the current directory.
You can also specify a input directory:
```sh
$ caaf inputDir
```
And output directory:
```sh
$ 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](https://github.com/RichardLitt/standard-readme) specification.
## License
Licensed under the MIT License.