Back to rankings

cssnano/cssnano

CSScssnano.github.io/cssnano/

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

postcsscssnanooptimisationcssminification
Star Growth
Stars
5k
Forks
326
Weekly Growth
Issues
93
2k4k
Apr 2015Jan 2019Oct 2022Jul 2026
Artifactsnpmnpm install cssnano
README


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

Related repositories
tailwindlabs/tailwindcss

A utility-first CSS framework for rapid UI development.

TypeScriptnpmMIT Licensetailwindcsscss
tailwindcss.com
96k5.4k
saadeghi/daisyui

🌼 🌼 🌼 🌼 🌼  The most popular, free and open-source Tailwind CSS component library

SvelteMIT Licensetailwind-cssui-library
daisyui.com
41.8k1.7k
postcss/postcss

Transforming styles with JS plugins

TypeScriptnpmMIT Licensepostcsscss
postcss.org
29k1.6k
aniftyco/awesome-tailwindcss

😎 Awesome things related to Tailwind CSS

Creative Commons Zero v1.0 Universaltailwindcssawesome
tailwindcss.com
15.1k1k
stylelint/stylelint

A mighty CSS linter that helps you avoid errors and enforce conventions.

JavaScriptnpmMIT Licenselintercss
stylelint.io
11.5k1k
uncss/uncss

Remove unused styles from CSS

JavaScriptnpmMIT Licenseuncssjavascript
9.4k404
FullHuman/purgecss

Remove unused CSS

TypeScriptnpmMIT Licensecssoptimization-tools
purgecss.com
8k244
fkling/astexplorer

A web tool to explore the ASTs generated by various parsers.

JavaScriptnpmMIT Licenseast-explorerparser
astexplorer.net
6.5k776
chakra-ui/panda

🐼 Universal, Type-Safe, CSS-in-JS Framework for Design Systems ⚡️

TypeScriptnpmMIT Licensecssstyled-system
panda-css.com
6.1k308
MoOx/postcss-cssnext

`postcss-cssnext` has been deprecated in favor of `postcss-preset-env`.

JavaScriptnpmMIT Licensepostcsscss
moox.io/blog/deprecating-cssnext/
5.3k185
egoist/poi

⚡A zero-config bundler for JavaScript applications.

JavaScriptnpmMIT Licensewebpackbuild-tool
poi.js.org
5.2k253
peterramsing/lost

LostGrid is a powerful grid system built in PostCSS that works with any preprocessor and even vanilla CSS.

JavaScriptnpmMIT Licensegridpostcss
lostgrid.org
4.5k155