All Downloads are FREE. Search and download functionalities are using the official Maven repository.

csso-1.3.9.node_modules.csso.docs.index.index.en.md Maven / Gradle / Ivy

CSSO (CSS Optimizer) is a CSS minimizer unlike others. In addition to usual minification techniques it can perform structural optimization of CSS files, resulting in smaller file size compared to other minifiers.

# Minification (in a nutshell)

Safe transformations:

* Removal of whitespace
* Removal of trailing `;`
* Removal of comments
* Removal of invalid `@charset` и `@import` declarations
* Minification of color properties
* Minification of `0`
* Minification of multi-line strings
* Minification of the `font-weight` property

Structural optimizations:

* Merging blocks with identical selectors
* Merging blocks with identical properties
* Removal of overridden properties
* Removal of overridden shorthand properties
* Removal of repeating selectors
* Partial merging of blocks
* Partial splitting of blocks
* Removal of empty ruleset and at-rule
* Minification of `margin` and `padding` properties

The minification techniques are described in detail in the [detailed description](/tools/csso/description/).

# Authors

* initial idea — Vitaly Harisov ()
* implementation — Sergey Kryzhanovsky ()
* english translation — Leonid Khachaturov ()
* japanese translation — Koji Ishimoto ()

# Feedback

Please report issues on [Github] (https://github.com/css/csso/issues).

For feedback, suggestions, etc. write to .

# License

* CSSO is licensed under [MIT](https://github.com/css/csso/blob/master/MIT-LICENSE.txt)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy