A Rollup plugin that collects all imported CSS files and bundles them into a single external CSS file. Version 1.0.4 (latest as of 2023) is stable but unmaintained; no updates since 2019. It preserves CSS import order and supports include/exclude filters and a transform option (e.g., for PostCSS). Unlike alternatives like rollup-plugin-postcss, it does not generate source maps, inline CSS into JS, or handle CSS modules. Simple, single-purpose tool.
npm install rollup-plugin-css-bundleVerified import paths — ran on the pinned version, not inferred.
Shows minimal usage of rollup-plugin-css-bundle in a Rollup config to bundle all imported CSS into an external file.
Use an alternative plugin like rollup-plugin-postcss if source maps are needed.
If you need inline CSS, use rollup-plugin-postcss or rollup-plugin-styles.
Ensure CSS imports are ordered explicitly by importing the CSS files in the desired sequence.
Run: npm install --save-dev rollup-plugin-css-bundle
Use import cssbundle from 'rollup-plugin-css-bundle' or const cssbundle = require('rollup-plugin-css-bundle').defaultNo dependency data recorded yet.