A Rollup plugin that integrates PostCSS processing and bundles processed CSS into a single external file. Version 1.0.3 is the latest stable release. Features include custom PostCSS plugins, source maps, CSS modules support via postcss-modules, and configurable file extensions. Key differentiators: it exports all CSS to one external file rather than inlining or emitting separate chunks, and it supports CSS modules with a getExport callback. The plugin is lightweight and focused, but has low maintenance activity.
npm install rollup-plugin-postcss-exportVerified import paths — ran on the pinned version, not inferred.
Minimal Rollup config using rollup-plugin-postcss-export to process CSS and export a single external CSS file with autoprefixer and source maps.
Use './output.css' instead of '/absolute/path/output.css'.
Ensure all CSS is imported in your JS entry points or use additional plugins for HTML.
Replace 'postcss: require('postcss')' with 'plugins: [...]'.Implement 'getJSON' in postcss-modules config and a 'getExport' function in the plugin options.
Use alternative plugins like rollup-plugin-postcss if you need to inject CSS or bundle inline.
Change to 'import postcss from 'rollup-plugin-postcss-export'
Run 'npm install rollup-plugin-postcss-export' and ensure no typos.
Add 'export: './bundle.css'' to the postcss options.
Ensure plugin is early in the plugins array and imports have correct paths.
No dependency data recorded yet.