HSPP is an optimizer and minifier for CSS files written in C++11.
- To save your servers bandwidth
- To speed up network transfer (in most cases it will also lead to better gzip results)
- To speed up parsing by the browser
- To improve search engine rating
- To make your production code harder to read for the others (obfuscation).
At the same time your original code will stay unchanged.
- Removing of optional whitespace
- Removing comments (preserving comments containing specific terms is possible)
- Number minification
- Color minification
- Minification of angles
- Minification of IDs
- Minification of class names
- Minification of custom property names
- Minification of keyframes animation names
- Rewriting/minifying of some functions
- Removing of empty rules
- Tokenize the input CSS file to a token stream
- Parse the token stream into an abstract syntax tree (AST)
- Modify the AST
- Output the modified AST information to a file or standard output
Visit the download page to download the prebuilt binaries for Linux and Windows.
Visit the documentation page to get started.
This project is published under the GNU General Public License Version 3 (GPLv3).
Read more