{"library":"rollup-plugin-sass","title":"rollup-plugin-sass","description":"Rollup plugin for compiling Sass/SCSS files into CSS, with support for output to file, insertion into <head>, and custom processors (e.g., PostCSS). Current version 1.15.3, released July 2024, with maintenance releases focused on dependency updates and vulnerability fixes. Key differentiators: supports both legacy `node-sass` and modern `sass` compiler via `api` option (added in v1.15.0), CSS modules via processor, and TypeScript types included. Release cadence is irregular but with periodic maintenance updates.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-sass"],"cli":null},"imports":["import sass from 'rollup-plugin-sass';","import type { SassOptions } from 'rollup-plugin-sass';","import type { SassPluginOptions } from 'rollup-plugin-sass';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport sass from 'rollup-plugin-sass';\nimport autoprefixer from 'autoprefixer';\nimport postcss from 'postcss';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'cjs',\n  },\n  plugins: [\n    sass({\n      output: 'dist/bundle.css',\n      processor: (css) =>\n        postcss([autoprefixer])\n          .process(css, { from: undefined })\n          .then((result) => result.css),\n    }),\n  ],\n};","lang":"javascript","description":"Basic Rollup config that compiles SCSS to CSS, writes to file, and runs PostCSS with autoprefixer.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}