{"library":"rollup-plugin-template-postcss","title":"rollup-plugin-template-postcss","description":"A Rollup plugin that processes CSS template literals (including LitElement's css tag) through PostCSS. Current stable version is 1.3.0. The plugin iterates over all matched JavaScript/TypeScript files, extracts CSS template literals, and runs them through PostCSS with user-provided plugins. It supports custom tag names (e.g., 'css'), include/exclude globs, and works with Vite. Unlike related plugins, it leverages PostCSS's plugin ecosystem, making it extensible for minification (cssnano), Tailwind CSS v4, Autoprefixer, and more. Peer dependency on postcss ^8.4.40. Ship TypeScript types.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install rollup-plugin-template-postcss"],"cli":null},"imports":["import { templatePostcss } from 'rollup-plugin-template-postcss'","import type { TemplatePostcssOptions } from 'rollup-plugin-template-postcss'","import { templatePostcss } from 'rollup-plugin-template-postcss'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { templatePostcss } from 'rollup-plugin-template-postcss';\nimport cssnano from 'cssnano';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'esm'\n  },\n  plugins: [\n    templatePostcss({\n      tags: ['css'],\n      include: ['**/*.js', '**/*.ts'],\n      exclude: ['node_modules/**'],\n      plugins: [\n        cssnano({\n          preset: 'default'\n        })\n      ]\n    })\n  ]\n};\n","lang":"typescript","description":"Basic Rollup config using rollup-plugin-template-postcss with cssnano to minify CSS template literals in LitElement components.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}