cssnano breaking changes
cssnano 10.0.0 (November 26, 2026) is its newest release with breaking changes, 17 of them. The first: Removed discardComments.removeAllButFirst. Every breaking API change we have recorded in cssnano on npm: 36 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 10.0.1, released December 3, 2026. Source repository
Its 7.0.0 release drops Node.js 14 and 16. Node.js end of life dates.
- From 9.9.0 to 10.0.0: 17 breaking changes in 1 version.
- From 6.0.0 to 10.0.0: 34 breaking changes in 7 versions.
cssnano 10.0.0 breaking changes
- Removed
discardComments.removeAllButFirst
The removeAllButFirst option is gone. Important comments are now removed only when removeAll or a remove callback asks for it, so configurations passing the option keep every important comment. github.com - Removed
Options.configFile
Options.configFile was removed in cssnano 10.0.0 npmjs.com - Removed
Options.plugins
Options.plugins was removed in cssnano 10.0.0 npmjs.com - Removed
Options.preset
Options.preset was removed in cssnano 10.0.0 npmjs.com - Removed
PluginCreator
PluginCreator was removed in cssnano 10.0.0 npmjs.com - Removed
PluginOptions
PluginOptions was removed in cssnano 10.0.0 npmjs.com - Removed
PluginSpec
PluginSpec was removed in cssnano 10.0.0 npmjs.com - Removed
PresetFactory
PresetFactory was removed in cssnano 10.0.0 npmjs.com - Removed
PresetPlugin
PresetPlugin was removed in cssnano 10.0.0 npmjs.com - Removed
PresetSpec
PresetSpec was removed in cssnano 10.0.0 npmjs.com - Behavior changed
The default, lite and advanced presets return a single cssnano-host plugin in place of one plugin per option. Check any code that depends on the individual plugins. github.com - Behavior changed
@charset
An existing @charset is dropped when its only non-ASCII text was removed or renamed. github.com - Behavior changed
discardEmpty
With discardEmpty on, a container emptied by discardUnused or mergeIdents is now removed too. github.com - Default changed
The default browserslist query is updated in a breaking change, which can change which browser features are transformed. github.com - Configuration changed
The release changes the configuration format. Review your options and update them to the new shape. github.com - Configuration changed
browserslist
env and stats passed to process() no longer set browser targets. Pass them as browserslist: { env, stats } in the preset options. github.com - Signature changed
Options
Was type Options = {preset?: PresetSpec; plugins?: PluginSpec[]; configFile?: string;}; now type Options = import('./config.js').Options. npmjs.com
cssnano 9.9.0 breaking changes
- Behavior changed
cssnano-preset-default
Projects that require cssnano-preset-default directly must declare it as a dependency, or use the preset option instead. github.com - Configuration changed
Installing cssnano now adds one package. Overrides and resolutions that pin individual plugins no longer apply, so remove them. github.com
cssnano 9.6.0 breaking changes
- Behavior changed
A round() rounding strategy must be separated by a comma; the form round(up 1px, 2px) is no longer treated as valid, so code using it must add the comma. github.com
cssnano 9.1.0 breaking changes
- Behavior changed
remove
A remove option that is not a function now fails with a TypeError instead of being ignored. Pass a function or leave the option out. github.com - Behavior changed
removeAllButFirst
A shared processor no longer keeps removeAllButFirst first-comment state between runs. Each document now starts with fresh state, so code relying on the carried-over state must change. github.com
cssnano 9.0.0 breaking changes
- Removed
cssnano 9.0 requires Node.js 22.22.3 or later in the 22.x line, 24.15.0 or later in the 24.x line, or 26.0 or later. cssnano.github.io - Removed
cssnano-preset-default.src
Deep imports of preset internals are no longer available and code using them must stop importing them. cssnano.github.io - Removed
cssnano.src
Deep imports of cssnano internals are no longer available and code using them must stop importing them. cssnano.github.io - Removed
cssnano.src.index.js
Deep imports of cssnano internals are no longer available and code using them must stop importing them. cssnano.github.io - Behavior changed
cssnano loads only the exact preset name you pass, so names relying on the cssnano-preset- prefix fallback must be written in full. cssnano.github.io - Behavior changed
The package ships only as ESM, so code that loads it with CommonJS must switch to ESM imports. cssnano.github.io - Configuration changed
Move any configuration from package.json or .cssnanorc.js into a supported configuration file in the current working directory, or pass it with the configFile option. github.com - Configuration changed
cssnano no longer searches parent directories or the extensionless .cssnanorc file, and only looks for .cssnanorc.json and cssnano.config.js in the working directory. cssnano.github.io - Signature changed
default
Was function cssnanoPlugin(options?: {}): postcss.Processor; now function cssnanoPlugin(options?: Options | undefined): import('postcss').Processor namespace cssnanoPlugin. npmjs.com
cssnano 8.0.0 breaking changes
- Removed
The package no longer supports Node.js 20, so users on Node.js 20 must upgrade their Node.js version before using this release. github.com - Behavior changed
The declaration sorter now runs only in the advanced preset, so users of the default preset no longer get it and must opt into the advanced preset to keep that sorting. github.com
Older versions
2 older versions.
Show 2 older versions
cssnano 7.0.0 breaking changes
- Removed
The package no longer officially supports Node.js 14, 16, 19 and 21, and Node.js 22 is now supported. Users on those older Node.js versions should upgrade their runtime before using 7.0.0. github.com
cssnano 6.0.0 breaking changes
- Removed
Undocumented YAML config support was removed. Move the configuration into the PostCSS config or use a CommonJS or JSON configuration file. github.com - Removed
Node.js versions below 14 are no longer supported. Upgrade Node.js to 14 or later. github.com
Related packages
- cssnano-utils
- postcss-reduce-initial
- postcss-normalize-positions
- postcss-merge-rules
- postcss-normalize-unicode
- cssnano-preset-default
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.