esbuild-sass-glob

1.0.8 • Public • Published

Usage

Designed for usage with esbuild-sass-plugin. Supports both SASS and SCSS wildcard imports.

Getting Started

npm i esbuild-sass-glob

Import the module and use it inside of your esbuild-sass-plugin precompile function option.

import sassGlob from 'esbuild-sass-glob';

esbuild.build({
    ...,
    plugins: [
        sassPlugin({
            precompile: (source, pathname) => {
                return sassGlob(source, pathname);
            },
        }),
    ],
    ...
})

SCSS Examples

@import './**/*.scss';
@import './*.scss';

Inspired by webpack-import-glob-loader.

Package Sidebar

Install

npm i esbuild-sass-glob

Weekly Downloads

111

Version

1.0.8

License

MIT

Unpacked Size

3.83 kB

Total Files

4

Last publish

Collaborators

  • austen-wade