Webpack plugin for CSSO minification that processes CSS bundles to reduce size. Current stable is v2.0.0-beta.3, with v3.0.0 published but ships CSSO 5.x (breaking). Releases are irregular. Differentiators: supports full restructuring across chunks, works with CSS Modules custom syntax, can output both pure and minified versions simultaneously via pluginOutputPostfix. Alternative to csso-loader or postcss-csso.
npm install csso-webpack-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic webpack config using MiniCssExtractPlugin and CssoWebpackPlugin to minify CSS output.
Use v2.x for Node <10 or CSSO 4.x compatibility.
Use v1.x for Node <8.
Remove sourceMap option and set devtool in webpack config.
Use require('csso-webpack-plugin').default or enable esModuleInterop.Ignore .flow files; TypeScript types are bundled.
Change to: const CssoWebpackPlugin = require('csso-webpack-plugin').default;Run: npm install --save-dev csso-webpack-plugin
Add a rule for .css files using css-loader and MiniCssExtractPlugin.loader.