Repository navigation
What's Changed
-
cssnano now ships its presets and plugins in a single package, so installing it adds one cssnano package to your dependency tree instead of about thirty, and you have fewer packages to review in audits and lockfile updates.
preset: 'lite'andpreset: 'advanced'now work without installing another package. An installed preset package still takes precedence over the built-in one and prints a one-timeCSSNANO_INSTALLED_PRESETwarning; pass the imported preset function to keep it without the warning. Full names such ascssnano-preset-defaultfall back to the built-in preset when no package is installed. Projects that requirecssnano-preset-defaultdirectly must declare it as a dependency, or switch topreset: ['default', {...}].overridesandresolutionsthat pin an individual plugin no longer apply.