Rollup multiple .scss, .sass and .css imports
Installation
# Rollup v0.60+ and v1+
npm install --save-dev rollup-plugin-scss
# Rollup v0.59 and below
npm install --save-dev rollup-plugin-scss@0
Usage
// rollup.config.js input: 'input.js' output: file: 'output.js' format: 'esm' plugins: // will output compiled styles to output.css
// entry.js
Options
Options are passed to the sass compiler (node-sass by default). Refer to the Sass docs for more details on these options.
One notable option is indentedSyntax
which you'll need if you're parsing Sass syntax instead of Scss syntax. (e.g. when extracting a Vue <style lang="sass">
tag)
By default the plugin will base the filename for the css on the bundle destination.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Contributions and feedback are very welcome.
To get it running:
- Clone the project.
npm install
Credits
License
The MIT License (MIT). Please see License File for more information.