@theme-tools/sass-import-globbing

Sass @import globbing

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@theme-tools/sass-import-globbing
Minified + gzip package size for @theme-tools/sass-import-globbing in KB

Readme

Sass Import Globbing

Uses custom importer in node-sass to handle @import '**/*.scss'

Install

npm install --save @theme-tools/sass-import-globbing

Setup

First, require it:

const sassImportGlobbing = require('@theme-tools/sass-import-globbing');

Then pass sassImportGlobbing to the importer option in sass; here's a few examples depending on your build tool.

Adding to Gulp

const sassImportGlobbing = require('@theme-tools/sass-import-globbing');

gulp.task('sass', function () {
  return gulp.src('./sass/**/*.scss')
    .pipe(sass({
      importer: sassImportGlobbing
    }).on('error', sass.logError))
    .pipe(gulp.dest('./css'));
});

Usage

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.