Registry / http-networking / rollup-plugin-postcss-independed

rollup-plugin-postcss-independed

JSON →
library1.8.1jsnpmunverified

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.

npm install rollup-plugin-postcss-independed
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-POST
R
rollup-plugin-postcss-independed
http-networkingjavascriptv1.8.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

postcss
import postcss from 'rollup-plugin-postcss-independent'
const postcss = require('rollup-plugin-postcss-independent')
CommonJS require works but default import is preferred for ESM.

Rollup configuration using postcss plugin with modules, injection, and minification enabled.

import postcss from 'rollup-plugin-postcss-independent'; export default { input: 'src/main.js', output: { file: 'dist/bundle.js', format: 'esm' }, plugins: [ postcss({ modules: true, inject: true, minimize: true, extract: false }) ] };
Debug
Known issues
gotchaThe plugin expects PostCSS to be installed as a local dependency; if installed globally, it might fail if peer deps are missing.
fix
Ensure PostCSS is listed as a local devDependency.
affects: >=1.0.0
breakingIn v1.7.0, the internal importCwd dependency was removed; existing configurations that relied on global PostCSS resolution may break.
fix
Install PostCSS locally as a devDependency if using global installs.
affects: >=1.7.0
Errors
Common errors & fixes
Error: Could not resolve a postcss module. Please install it with 'npm i postcss --save-dev'.
PostCSS not installed locally.
fix
Run 'npm install postcss --save-dev'.
Upgrade
Version history
1.8.1latest on npm
Audit
Dependencies
rolluprequiredpeer dependency for rollup plugin interface
postcssrequiredruntime dependency for PostCSS processing
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
rollup-plugin-postcss-independed — npm install rollup-plugin-postcss-independed · libregistry