1.0.3 • Published 3 years ago

@ian-sun/rollup-plugin-sass v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm size

@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.

License

LICENSE (MIT)