scss-bundle

  • Version 3.1.2
  • Published
  • 57.2 kB
  • 18 dependencies
  • MIT license

Install

npm i scss-bundle
yarn add scss-bundle
pnpm add scss-bundle

Overview

Bundling SCSS files to one bundled file.

Index

Classes

class Bundler

class Bundler {}

    constructor

    constructor(fileRegistry?: FileRegistry, projectDirectory?: string);

      method bundle

      bundle: (
      file: string,
      dedupeGlobs?: string[],
      includePaths?: string[],
      ignoredImports?: string[]
      ) => Promise<BundleResult>;

        Interfaces

        interface BundleResult

        interface BundleResult {}

          property bundledContent

          bundledContent?: string;

            property deduped

            deduped?: boolean;

              property filePath

              filePath: string;

                property found

                found: boolean;

                  property ignored

                  ignored?: boolean;

                    property imports

                    imports?: BundleResult[];

                      property tilde

                      tilde?: boolean;

                        interface BundlerOptions

                        interface BundlerOptions {}

                          property dedupeGlobs

                          dedupeGlobs?: string[];

                            property entryFile

                            entryFile?: string;

                              property ignoreImports

                              ignoreImports?: string[];

                                property includePaths

                                includePaths?: string[];

                                  property logLevel

                                  logLevel?: string;

                                    property outFile

                                    outFile?: string;

                                      property project

                                      project?: string;

                                        property rootDir

                                        rootDir?: string;

                                          property watch

                                          watch?: boolean;

                                            interface FileRegistry

                                            interface FileRegistry {}

                                              index signature

                                              [id: string]: string | undefined;

                                                interface ImportData

                                                interface ImportData {}

                                                  property found

                                                  found: boolean;

                                                    property fullPath

                                                    fullPath: string;

                                                      property ignored

                                                      ignored?: boolean;

                                                        property importString

                                                        importString: string;

                                                          property path

                                                          path: string;

                                                            property tilde

                                                            tilde: boolean;

                                                              interface ScssBundleConfig

                                                              interface ScssBundleConfig {}

                                                                property bundlerOptions

                                                                bundlerOptions: BundlerOptions;

                                                                  Package Files (3)

                                                                  Dependencies (18)

                                                                  Dev Dependencies (8)

                                                                  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/scss-bundle.

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