Skip to content

cssnano/cssnano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 27, 2025
e09cf7e · Jan 27, 2025
Jan 27, 2025
Apr 27, 2024
Apr 24, 2024
Feb 1, 2019
Feb 16, 2022
Jan 27, 2025
Dec 26, 2024
Apr 27, 2024
Nov 30, 2021
Apr 29, 2019
May 8, 2019
Mar 5, 2022
May 31, 2023
Mar 16, 2022
Apr 29, 2019
Dec 18, 2021
Jun 18, 2024
May 2, 2015
Mar 6, 2024
Dec 15, 2023
Jan 27, 2025
Jan 27, 2025
Dec 18, 2021
Mar 6, 2024

Repository files navigation


cssnano


A modular minifier, built on top of the PostCSS ecosystem.

Backers on Open Collective Sponsors on Open Collective NPM version Build Status codecov Gitter

cssnano is a modern, modular compression tool written on top of the PostCSS ecosystem, which allows us to use a lot of powerful features in order to compact CSS appropriately.

Our preset system allow you to load cssnano in a different configuration depending on your needs; the default preset performs safe transforms, whereas the advanced preset performs more aggressive transforms that are safe only when your site meets the requirements; but regardless of the preset you choose, we handle more than whitespace transforms!

Optimisations range from compressing colors & removing comments, to discarding overridden at-rules, normalising unicode-range descriptors, even mangling gradient parameters for a smaller output value! In addition, where it's made sense for a transform, we've added Browserslist to provide different output depending on the browsers that you support.

For further details check out the website:

You can now try cssnano online!

Contributing

See CONTRIBUTING.md.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

MIT © Ben Briggs