Skip to content

austen-wade/esbuild-sass-glob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

NPM package for easily adding Sass globbing to a project using esbuild-sass-plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published