An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          




caaf



CLI tool for minification, purification and optimization of HTML, JS, CSS and image assets





Package version


Downloads


Standard


Travis Build


Standard Readme


GitHub version


Dependency CI


License


PRs


Donate






Github Watch Badge


Github Star Badge


Tweet





Built with ❤︎ by Tiaan and contributors

Table of Contents

Table of Contents

  • About

  • Install

  • Usage

  • Contribute

  • License
  • ## 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.

    Icons made by Madebyoliver from www.flaticon.com is licensed by CC 3.0 BY