{"id":22164,"library":"rollup-plugin-postcss-independed","title":"rollup-plugin-postcss-independent","description":"Rollup plugin for PostCSS integration, adapted for global NPM packages (v1.8.1, active development). Based on rollup-plugin-postcss, it resolves issues with importCwd and global installations. Key differentiator: compatible with globally installed npm packages where peer dependencies may be missing. Uses async await and supports CSS modules, inject, and minimize options.","status":"active","version":"1.8.1","language":"javascript","source_language":"en","source_url":"https://github.com/vovkabelov/rollup-plugin-postcss-independent","tags":["javascript","postcss","rollup"],"install":[{"cmd":"npm install rollup-plugin-postcss-independed","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-postcss-independed","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-postcss-independed","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for rollup plugin interface","package":"rollup","optional":false},{"reason":"runtime dependency for PostCSS processing","package":"postcss","optional":false}],"imports":[{"note":"CommonJS require works but default import is preferred for ESM.","wrong":"const postcss = require('rollup-plugin-postcss-independent')","symbol":"postcss","correct":"import postcss from 'rollup-plugin-postcss-independent'"}],"quickstart":{"code":"import postcss from 'rollup-plugin-postcss-independent';\n\nexport default {\n  input: 'src/main.js',\n  output: { file: 'dist/bundle.js', format: 'esm' },\n  plugins: [\n    postcss({\n      modules: true,\n      inject: true,\n      minimize: true,\n      extract: false\n    })\n  ]\n};","lang":"javascript","description":"Rollup configuration using postcss plugin with modules, injection, and minification enabled."},"warnings":[{"fix":"Ensure PostCSS is listed as a local devDependency.","message":"The plugin expects PostCSS to be installed as a local dependency; if installed globally, it might fail if peer deps are missing.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Install PostCSS locally as a devDependency if using global installs.","message":"In v1.7.0, the internal importCwd dependency was removed; existing configurations that relied on global PostCSS resolution may break.","severity":"breaking","affected_versions":">=1.7.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install postcss --save-dev'.","cause":"PostCSS not installed locally.","error":"Error: Could not resolve a postcss module. Please install it with 'npm i postcss --save-dev'."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}