FindSoftware

cssnano

Modular CSS minifier, built on the PostCSS ecosystem, that compresses stylesheets with a set of optimizations and presets.

cssnano is a CSS minifier built on the PostCSS ecosystem. It runs as a PostCSS plugin, so it is installed with npm alongside PostCSS. Its default preset applies safe transforms, and its advanced preset applies more aggressive ones. The getting-started guide recommends running the minifier in the deployment step, so the compressed files are the ones that reach the server or content delivery network.

Worth knowing

The guide says that in most cases cssnano is not needed on the web server.

Identity

Status
Active
Maintainer
Ben Briggs4
First release
20157

Rendering and deploy

Runs as
Dev only5
Install with
npm install cssnano postcss --save-dev5

Releases

Current major version
97
Last release
2026-10-167

Adoption

GitHub stars
4,9812
npm downloads a week
21,890,4379
Contributors
1178
Dependent repositories
2,638,84110
Dependent packages
13,55710

Why these figures do not compare

Sources

  1. 2026-10-28: links
    cssnano.github.io/cssnano/
  2. 2026-10-28: links, Written in, License, GitHub stars
    api.github.com/repos/cssnano/cssnano
  3. 2026-10-28: links, Categories
    raw.githubusercontent.com/cssnano/cssnano/main/README.md
  4. 2026-10-28: Maintainer
    raw.githubusercontent.com/cssnano/cssnano/main/LICENSE-MIT
  5. 2026-10-28: Runtime, Runs as, Install with
    cssnano.github.io/cssnano/docs/getting-started/
  6. 2026-10-28: Minimum runtime
    raw.githubusercontent.com/cssnano/cssnano/cssnano@9.9.0/packages/cssnano/package.json
  7. 2026-10-28: First release, Current major version, Last release
    api.github.com/repos/cssnano/cssnano/releases
  8. 2026-10-28: Contributors
    api.github.com/repos/cssnano/cssnano/contributors?per_page=1
  9. 2026-10-28: npm downloads a week
    api.npmjs.org/downloads/range/2026-09-28:2026-10-04/cssnano
  10. 2026-10-28: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cssnano
  11. 2026-10-28: Built on
    github.com/cssnano/cssnano/blob/main/README.md

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON