# cssnano/cssnano

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

Repository: https://github.com/cssnano/cssnano
Canonical: https://ross.abutalabs.com/products/cssnano
Homepage: https://cssnano.github.io/cssnano/
Language: CSS
License: MIT
License Family: permissive
Topics: postcss, cssnano, optimisation, css, minification
Last push: 2026-08-26T20:55:36+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 4159, "days_push": 7, "days_rel": 7, "gap_med": 7.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4975, forks 327 (observed 2026-08-28T04:09:04.081797+00:00)

## What it is
cssnano is a modular CSS minifier built on the PostCSS ecosystem, using 30+ focused plugins to compress and optimize CSS for production. It offers safe default and advanced presets, with Browserslist-aware output tailored to supported browsers.

## Use cases
- minify css for production builds
- reduce css file size in webpack or vite
- compress colors and remove duplicate css rules
- optimize css based on browser support targets
- integrate css minification into a postcss pipeline

## When to choose
- you already use PostCSS and want drop-in CSS compression
- you need configurable minification with safe and aggressive presets
- you want browser-targeted CSS optimization via Browserslist

## When to avoid
- you need a full CSS preprocessor or postprocessor with new features
- your build pipeline does not use JavaScript/Node.js tooling
- you only need whitespace stripping from a simple shell script

## Facets
- artifact type: library
- maturity: active
- function: build-tool, developer-tools
- domain: web-development, frontend, performance
- platform: cli
- tags: css-minifier, postcss, css-optimization, browserslist, production-build, nodejs

## Member repositories
- cssnano/cssnano (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:04.081797+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:44.216041+00:00, confidence not recorded.
  - readme: https://github.com/cssnano/cssnano (fetched 2026-08-28T04:09:04.081797+00:00, sha ab8de7717189)
  - homepage: https://cssnano.github.io/cssnano/ (fetched 2026-08-29T08:58:55.461826+00:00, sha c59be8064aba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
