PostCSS plugin to minify CSS using CSSO (v6.0.1). It converts PostCSS AST to CSSO's AST, optimizes it, then converts back, preserving original node shapes. Releases follow semver with occasional minor bumps. Differentiators: preserves PostCSS node structure, generates correct source maps, and offers performance comparable to standalone CSSO. Requires PostCSS v8+ as a peer dependency. Useful in build pipelines via PostCSS configuration.
npm install postcss-cssoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of postcss-csso with options, processing CSS input and logging minified output.
Upgrade to Node.js >=12 and PostCSS >=8.
Explicitly set { restructure: true/false } to ensure consistent behavior.Use 'csso({ forceMediaMerge: true })' - note: this option may be ignored or cause errors.Use 'import csso from 'postcss-csso'' or 'const csso = require('postcss-csso')'Upgrade PostCSS to version 8 or later.