---
title: "cssnano 10.0.0 Breaking Changes on npm | Since.dev"
description: "What each cssnano release removed, renamed or changed: 36 breaking changes in 8 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/cssnano
last_updated: 2026-12-04
---

# 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

Latest version `10.0.1`, released December 3, 2026. [Source repository](https://github.com/cssnano/cssnano)

Its 7.0.0 release drops Node.js 14 and [16](https://since.dev/calendar/nodejs/16.md). [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [9.9.0](#v-9-9-0) to [10.0.0](#v-10-0-0): 17 breaking changes in 1 version.
- From [6.0.0](#v-6-0-0) to [10.0.0](#v-10-0-0): 34 breaking changes in 7 versions.

## cssnano 10.0.0 breaking changes

cssnano 10.0.0, released November 26, 2026: 17 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](https://github.com/cssnano/cssnano/commit/37962ef13034bc264ce83d35037830c4803e6911)
- **Removed** `Options.configFile`  

Options.configFile was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `Options.plugins`  

Options.plugins was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `Options.preset`  

Options.preset was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `PluginCreator`  

PluginCreator was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `PluginOptions`  

PluginOptions was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `PluginSpec`  

PluginSpec was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `PresetFactory`  

PresetFactory was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `PresetPlugin`  

PresetPlugin was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **Removed** `PresetSpec`  

PresetSpec was removed in cssnano 10.0.0 [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)
- **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](https://github.com/cssnano/cssnano/commit/2cda8d4259b8f998d1cf31158cec81ce98c07f81)
- **Behavior changed** `@charset`  

An existing @charset is dropped when its only non-ASCII text was removed or renamed. [github.com](https://github.com/cssnano/cssnano/commit/2cda8d4259b8f998d1cf31158cec81ce98c07f81)
- **Behavior changed** `discardEmpty`  

With discardEmpty on, a container emptied by discardUnused or mergeIdents is now removed too. [github.com](https://github.com/cssnano/cssnano/commit/2cda8d4259b8f998d1cf31158cec81ce98c07f81)
- **Default changed**  

The default browserslist query is updated in a breaking change, which can change which browser features are transformed. [github.com](https://github.com/cssnano/cssnano/releases/tag/cssnano%4010.0.0)
- **Configuration changed**  

The release changes the configuration format. Review your options and update them to the new shape. [github.com](https://github.com/cssnano/cssnano/releases/tag/cssnano%4010.0.0)
- **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](https://github.com/cssnano/cssnano/commit/6c2a34691b61ae43a318c3a5b6f0534de436f59d)
- **Signature changed** `Options`  

Was type Options = {preset?: PresetSpec; plugins?: PluginSpec\[\]; configFile?: string;}; now type Options = import('./config.js').Options. [npmjs.com](https://www.npmjs.com/package/cssnano/v/10.0.0)

## cssnano 9.9.0 breaking changes

cssnano 9.9.0, released October 16, 2026: 2 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](https://github.com/cssnano/cssnano/releases/tag/cssnano%409.9.0)
- **Configuration changed**  

Installing cssnano now adds one package. Overrides and resolutions that pin individual plugins no longer apply, so remove them. [github.com](https://github.com/cssnano/cssnano/releases/tag/cssnano%409.9.0)

## cssnano 9.6.0 breaking changes

cssnano 9.6.0, released October 10, 2026: 1 breaking change.

- **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](https://github.com/cssnano/cssnano/releases/tag/cssnano%409.6.0)

## cssnano 9.1.0 breaking changes

cssnano 9.1.0, released September 27, 2026: 2 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](https://github.com/cssnano/cssnano/releases/tag/cssnano%409.1.0)
- **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](https://github.com/cssnano/cssnano/releases/tag/cssnano%409.1.0)

## cssnano 9.0.0 breaking changes

cssnano 9.0.0, released August 27, 2026: 9 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](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **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](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **Removed** `cssnano.src`  

Deep imports of cssnano internals are no longer available and code using them must stop importing them. [cssnano.github.io](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **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](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **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](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **Behavior changed**  

The package ships only as ESM, so code that loads it with CommonJS must switch to ESM imports. [cssnano.github.io](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **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](https://github.com/cssnano/cssnano/commit/5813891791cf6068c74c6fdcfec3351594776fd7)
- **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](https://cssnano.github.io/cssnano/blog/cssnano-9-migration-guide/)
- **Signature changed** `default`  

Was function cssnanoPlugin(options?: {}): postcss.Processor; now function cssnanoPlugin(options?: Options | undefined): import('postcss').Processor namespace cssnanoPlugin. [npmjs.com](https://www.npmjs.com/package/cssnano/v/9.0.0)

## cssnano 8.0.0 breaking changes

cssnano 8.0.0, released May 6, 2026: 2 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](https://github.com/cssnano/cssnano/releases/tag/cssnano%408.0.0)
- **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](https://github.com/cssnano/cssnano/releases/tag/cssnano%408.0.0)

## Older versions

2 older versions.

### cssnano 7.0.0 breaking changes

cssnano 7.0.0, released April 24, 2024: 1 breaking change.

- **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](https://github.com/cssnano/cssnano/releases/tag/cssnano%407.0.0)

### cssnano 6.0.0 breaking changes

cssnano 6.0.0, released March 27, 2023: 2 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](https://github.com/cssnano/cssnano/releases/tag/cssnano%406.0.0)
- **Removed**  

Node.js versions below 14 are no longer supported. Upgrade Node.js to 14 or later. [github.com](https://github.com/cssnano/cssnano/releases/tag/cssnano%406.0.0)

## Related packages

- [cssnano-utils](https://since.dev/packages/npm/cssnano-utils.md)
- [postcss-reduce-initial](https://since.dev/packages/npm/postcss-reduce-initial.md)
- [postcss-normalize-positions](https://since.dev/packages/npm/postcss-normalize-positions.md)
- [postcss-merge-rules](https://since.dev/packages/npm/postcss-merge-rules.md)
- [postcss-normalize-unicode](https://since.dev/packages/npm/postcss-normalize-unicode.md)
- [cssnano-preset-default](https://since.dev/packages/npm/cssnano-preset-default.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
