{"library":"rollup-plugin-css-only","title":"rollup-plugin-css-only","description":"A Rollup plugin (v4.5.5, stable) that bundles imported CSS files into a single asset rather than injecting them into the JavaScript bundle. Compared to rollup-plugin-postcss or rollup-plugin-styles, it is minimal—no CSS preprocessor support—and guarantees import order. Released under MIT, maintained by thgh, with compatibility for Rollup 2, 3, and 4 (since v4.4.0).","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-css-only"],"cli":null},"imports":["import css from 'rollup-plugin-css-only'","import type { RollupPluginCssOnly } from 'rollup-plugin-css-only'","import css from 'rollup-plugin-css-only'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js (ESM)\nimport css from 'rollup-plugin-css-only';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n    assetFileNames: 'assets/[name]-[hash][extname]'\n  },\n  plugins: [\n    css({\n      include: ['**/*.css'],\n      exclude: ['**/*.min.css'],\n      output: 'bundle.css' // Custom output filename\n    })\n  ]\n};","lang":"javascript","description":"Configures Rollup to bundle all imported CSS into a single 'bundle.css' asset, excluding minified files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}