{"library":"rollup-plugin-scss","title":"rollup-plugin-scss","description":"A Rollup plugin for compiling .scss, .sass, and .css files into a single CSS file, with support for source maps, custom processors (e.g., PostCSS), and prefix injection. Version 4.0.1 is stable and actively maintained. It automatically uses the 'sass' package over 'node-sass', is written in TypeScript, and integrates seamlessly with Rollup's asset pipeline. Compared to alternatives like rollup-plugin-postcss, it focuses solely on Sass/SCSS compilation without additional CSS processing by default, offering a leaner setup for pure SCSS projects.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-scss"],"cli":null},"imports":["import scss from 'rollup-plugin-scss'","import scss from 'rollup-plugin-scss'","import type { SassPluginOptions } from 'rollup-plugin-scss'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport scss from 'rollup-plugin-scss';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm',\n    assetFileNames: '[name][extname]'\n  },\n  plugins: [\n    scss({\n      fileName: 'bundle.css',\n      sourceMap: true,\n      output: (styles, styleNodes) => {\n        console.log(`Generated ${styles.length} bytes of CSS`);\n      },\n      include: ['**/*.scss'],\n      exclude: ['**/vendor/**'],\n      failOnError: true,\n      verbose: false\n    })\n  ]\n};","lang":"javascript","description":"Example Rollup config using rollup-plugin-scss with options: custom output filename, source maps, include/exclude patterns, error handling, and output callback.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}