Rollup plugin that bundles imported .scss files and .vue component styles into a single .scss output file. Version 0.1.3 is the latest stable release, with irregular updates. It relies on scss-bundle for resolution and supports Vue 2 and Vue 3 via rollup-plugin-vue, as well as coexistence with rollup-plugin-postcss via the `exclusive` option. Compared to alternatives like rollup-plugin-scss or rollup-plugin-postcss, this plugin outputs raw SCSS (not compiled CSS) and is specifically designed for library authors who want to distribute themable SCSS sources.
npm install rollup-plugin-bundle-scssVerified import paths — ran on the pinned version, not inferred.
Basic Rollup config showing how to use the plugin to bundle SCSS into a single file.
Ensure correct order as per Vue version.
Add exclusive: false to bundleScss options and place it before postcss.
Consider migrating to a more actively maintained solution if needed.
Ensure vue and vue-template-compiler versions match; update to v0.1.3 which handles this gracefully.
Run npm install scss-bundle --save-dev