rollup-plugin-styles

  • Version 4.0.0
  • Published
  • 179 kB
  • 18 dependencies
  • MIT license

Install

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

Overview

Universal Rollup plugin for styles: PostCSS, Sass, Less, Stylus and more

Index

Functions

function _default

_default: (options?: Options) => Plugin;

    Namespaces

    namespace icss-utils

    module 'icss-utils' {}

      function extractICSS

      extractICSS: (css: Container, removeRules?: boolean) => ExtractedICSS;

        function replaceSymbols

        replaceSymbols: (css: Container, replacements: Replacements) => void;

          function replaceValueSymbols

          replaceValueSymbols: (value: string, replacements: Replacements) => string;

            interface ExtractedICSS

            interface ExtractedICSS {}

              property icssExports

              icssExports: CSSExports;

                property icssImports

                icssImports: CSSImports;

                  type CSSExports

                  type CSSExports = Record<string, string>;

                    type CSSImports

                    type CSSImports = Record<string, Record<string, string>>;

                      type Replacements

                      type Replacements = Record<string, string>;

                        namespace postcss-modules-extract-imports

                        module 'postcss-modules-extract-imports' {}

                          variable plugin

                          const plugin: PluginCreator<Options>;

                            type Options

                            type Options = { failOnWrongOrder?: boolean };

                              namespace postcss-modules-local-by-default

                              module 'postcss-modules-local-by-default' {}

                                variable plugin

                                const plugin: PluginCreator<Options>;

                                  type Options

                                  type Options = { mode?: 'local' | 'global' | 'pure' };

                                    namespace postcss-modules-scope

                                    module 'postcss-modules-scope' {}

                                      variable plugin

                                      const plugin: PluginCreator<Options>;

                                        type Options

                                        type Options = {
                                        exportGlobals?: boolean;
                                        generateScopedName?: (name: string, file: string, css: string) => string;
                                        };

                                          namespace postcss-modules-values

                                          module 'postcss-modules-values' {}

                                            variable plugin

                                            const plugin: PluginCreator<unknown>;

                                              Package Files (3)

                                              Dependencies (18)

                                              Dev Dependencies (53)

                                              Peer Dependencies (1)

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

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