rollup-plugin-sass-modules

1.4.0 • Public • Published

Rollup Plugin Sass Modules

Import and compile SASS files with rollup. It supports sourcemaps and import from node_modules.

Features

  • Compile SASS files with sass.
  • Export dependencies tree to rollup.
  • Support for sourcemaps.
  • Extract CSS files.

Installation

npm install rollup-plugin-sass-modules --save-dev

Usage

import sassModules from 'rollup-plugin-sass-modules'

export default {
    plugins: [
        sassModules({
            include: ['**/*.scss', '**/*.sass'],
            exclude: [],
            options: { ... }
        }),
    ],
}

Options

include

minimatch glob pattern (or array) of files to include.

exclude

minimatch glob pattern (or array) of files to exclude.

options

See dart-sass options.

If outFile option is provided, the plugin will automatically extract and write the compiled CSS.

processor (code) => Promise<{ code, map }>

Post processor function.

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-plugin-sass-modules

Weekly Downloads

159

Version

1.4.0

License

MIT

Unpacked Size

17.8 kB

Total Files

9

Last publish

Collaborators

  • edocava