@theme-tools/sass-import-globbing

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @theme-tools/sass-import-globbing

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • evanlovely