{"library":"rollup-plugin-postcss","title":"rollup-plugin-postcss","description":"Rollup plugin providing seamless integration with PostCSS. The current stable version is v4.0.2 (released Nov 2021, engines node >=10). It requires PostCSS 8.x as a peer dependency. Key differentiators: supports CSS modules, automatic PostCSS config loading, inject CSS into <head> or extract to file, and works with Sass, Less, Stylus via dependencies. Breaking change in v3: only supports Rollup v2, and extract path must be absolute. v4 upgraded to PostCSS 8. Also provides TypeScript types.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-postcss"],"cli":null},"imports":["import postcss from 'rollup-plugin-postcss'","import type { PostCSSPluginConfig } from 'rollup-plugin-postcss'","const postcss = require('rollup-plugin-postcss').default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport postcss from 'rollup-plugin-postcss';\nimport autoprefixer from 'autoprefixer';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    postcss({\n      plugins: [autoprefixer()],\n      modules: true,\n      extract: true,\n      minimize: true\n    })\n  ]\n};","lang":"typescript","description":"Basic Rollup config using rollup-plugin-postcss with Autoprefixer, CSS modules, extraction, and minimization.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}