marksmccann / node-sass-extra

A drop-in replacement for node-sass' Node API that adds support for globs, promises and more.
MIT License
2 stars 1 forks source link

Native support for importers? #24

Closed marksmccann closed 5 years ago

marksmccann commented 5 years ago

Do we want to bake in native support for any importers? My gut says probably not, but it might be a really handy feature, especially for a tilde/package importer. This is probably something each developer can handle themselves, just wanted to consider it.

const sass = require('node-sass-extra');

let results = await sass.render('src/**/*.scss', {
    packageImporter: true
});

https://github.com/maoberlehner/node-sass-magic-importer

marksmccann commented 5 years ago

Adding importers should be handled by the consumer. Tools like node-sass-package-importer are easy enough to implement. And with the config file for the CLI, they can easily implement there. This feature is not needed.