importer-overrides

0.2.6 • Public • Published

A custom Sass importer that lets you swap import files for overrides if they are available.

For use with Gulp (for now) because of gutil.log.

GitHub | NPM | @jelmerdemaat

Build Status bitHound Code bitHound Dependencies

Use

Basic setup:

var importer = require('importer-overrides');
 
sass({
  importer: importer,
  importerOptions: {
    debug: true,                    // or false
    client: 'src/client/folder/',   // required
    base: 'src/base/folder/',       // defaults to Gulpfile dir ('./')
    optional: 'imports'             // filepaths that match string are optional
  }
})

Todo

  • Take out the gutil dependency

License

MIT © Jelmer de Maat

Readme

Keywords

none

Package Sidebar

Install

npm i importer-overrides

Weekly Downloads

0

Version

0.2.6

License

MIT

Last publish

Collaborators

  • jelmer