Skip to content

A Rollup plugin for seamless integration between Rollup and Sass.

License

Notifications You must be signed in to change notification settings

IanSun/rollup-plugin-sass

Repository files navigation

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)

About

A Rollup plugin for seamless integration between Rollup and Sass.

Resources

License

Stars

Watchers

Forks