rollup-plugin-scss

  • Version 4.0.0
  • Published
  • 33.3 kB
  • 1 dependency
  • MIT license

Install

npm i rollup-plugin-scss
yarn add rollup-plugin-scss
pnpm add rollup-plugin-scss

Overview

Rollup multiple .scss, .sass and .css imports

Index

Functions

function scss

scss: (options?: CSSPluginOptions) => Plugin;

    Interfaces

    interface CSSPluginOptions

    interface CSSPluginOptions {}

      property exclude

      exclude?: Parameters<CreateFilter>[1];

        property failOnError

        failOnError?: boolean;

          property fileName

          fileName?: string;
          • Literal asset filename, bypasses any hashes in the filename

          property include

          include?: Parameters<CreateFilter>[0];

            property includePaths

            includePaths?: string[];

              property insert

              insert?: boolean;

                property name

                name?: string;
                • Asset name, defaults to output.css, Rollup may add a hash to this! Check out RollupConfig.output.assetFileNames

                property output

                output?: string | false | ((css: string, styles: Styles) => void);
                • Deprecated

                  Use fileName instead, currently still available for backwards compatibility

                property outputStyle

                outputStyle?: string;

                  property prefix

                  prefix?: string;

                    property processor

                    processor?: (
                    css: string,
                    map: string,
                    styles: Styles
                    ) => CSS | Promise<CSS> | PostCSSProcessor;

                      property sass

                      sass?: SassRenderer;

                        property sourceMap

                        sourceMap?: boolean;

                          property verbose

                          verbose?: boolean;

                            property watch

                            watch?: string | string[];

                              Package Files (1)

                              Dependencies (1)

                              Dev Dependencies (12)

                              Peer Dependencies (0)

                              No peer dependencies.

                              Badge

                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rollup-plugin-scss.

                              • Markdown
                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/rollup-plugin-scss)
                              • HTML
                                <a href="https://www.jsdocs.io/package/rollup-plugin-scss"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>