@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    31
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    31
  • 1.0.0
    2

Package Sidebar

Install

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

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • evanlovely