A Rollup plugin for Windi CSS, an on-demand Tailwind CSS replacement that generates utilities at build time instead of scanning a massive pre-generated stylesheet. Version 1.9.4 is current, maintained as part of the vite-plugin-windicss monorepo. It provides fast compilation, supports Tailwind CSS v2 configs, utility groups, CSS @apply/@screen transforms, and Vite/HMR compatibility. Peer dependency on Rollup. Differentiates from Tailwind CSS by being faster for large projects and generating only used styles.
npm install rollup-plugin-windicssVerified import paths — ran on the pinned version, not inferred.
Shows minimal Rollup config with the plugin and virtual CSS import in entry.
Use Rollup >=2.0.0; check for breaking changes in monorepo releases.
Migrate to Tailwind CSS v3 or UnoCSS; rollup-plugin-windicss still works for existing projects.
Ensure the plugin is added to the rollup config before the import in your source.
Update Rollup to ^2.60.0 or higher.
Update to version >=1.8.11 or ensure a windi.config.js exists.
Use import syntax and ensure rollup.config.mjs or "type": "module" in package.json.
Only use public API exports; do not import from subpath "rollup-plugin-windicss/utils".