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


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


Bundling SCSS files to one bundled file.



class Bundler

class Bundler {}


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

      method bundle

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


        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.


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

                                                                  You may also use to create a custom badge linking to

                                                                  • Markdown
                                                                  • HTML
                                                                    <a href=""><img src="" alt=""></a>