style-resources-loader

  • Version 1.4.1
  • Published
  • 47.3 kB
  • 3 dependencies
  • MIT license

Install

npm i style-resources-loader
yarn add style-resources-loader
pnpm add style-resources-loader

Overview

CSS processor resources loader for webpack

Index

Functions

function loader

loader: any;

    Interfaces

    interface StyleResource

    interface StyleResource {}

      property content

      content: string;

        property file

        file: string;

          interface StyleResourcesLoaderNormalizedOptions

          interface StyleResourcesLoaderNormalizedOptions
          extends NonNullable<StyleResourcesLoaderOptions> {}

            property injector

            injector: StyleResourcesNormalizedInjector;

              property patterns

              patterns: string[];

                interface StyleResourcesLoaderOptions

                interface StyleResourcesLoaderOptions {}

                  property globOptions

                  globOptions?: glob.IOptions;

                    property injector

                    injector?: StyleResourcesInjector;

                      property patterns

                      patterns: string | string[];

                        property resolveUrl

                        resolveUrl?: boolean;

                          Type Aliases

                          type Loader

                          type Loader = loader.Loader;

                            type LoaderCallback

                            type LoaderCallback = loader.loaderCallback;

                              type LoaderContext

                              type LoaderContext = loader.LoaderContext;

                                type StyleResources

                                type StyleResources = StyleResource[];

                                  type StyleResourcesFileFormat

                                  type StyleResourcesFileFormat = 'css' | 'sass' | 'scss' | 'less' | 'styl';

                                    type StyleResourcesFunctionalInjector

                                    type StyleResourcesFunctionalInjector = (
                                    source: string,
                                    resources: StyleResources
                                    ) => string | Promise<string>;

                                      type StyleResourcesInjector

                                      type StyleResourcesInjector =
                                      | 'prepend'
                                      | 'append'
                                      | StyleResourcesFunctionalInjector;

                                        type StyleResourcesNormalizedInjector

                                        type StyleResourcesNormalizedInjector = StyleResourcesFunctionalInjector;

                                          Package Files (3)

                                          Dependencies (3)

                                          Dev Dependencies (26)

                                          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/style-resources-loader.

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