@ian-sun/rollup-plugin-sass
v1.0.3
Published
A Rollup plugin for seamless integration between Rollup and Sass.
Downloads
269
Readme
@ian-sun/rollup-plugin-sass
A Rollup plugin for seamless integration between Rollup and Sass.
Install
Using npm:
npm install --save-dev @ian-sun/rollup-plugin-sass
Usage
Create a rollup.config.js
configuration file and import the plugin:
// rollup.config.js
import sass from '@ian-sun/rollup-plugin-sass';
export default {
input: 'input.js',
output: {
dir: 'output',
},
plugins: [sass()],
};
Then call rollup
either via the CLI or the API.
Options
exclude
Type: string
| Array<string>
Default: null
A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.
include
Type: string
| Array<string>
Default: ["**/*.sass", "**/*.scss"]
A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should operate on. By default all sass
and scss
files are targeted.
functions
Type: Record<string, Function>
Default: null
The Sass functions option, which defines additional built-in Sass functions that are available in all stylesheets.