A glob importer for use with node-sass
npm i node-sass-glob
To use the importer, simply pass it to the node-sass.render()
function
var sass = require('node-sass');
sass.render({
importer: require('node-sass-glob'),
...options
}, function (err, output) {});
In your scss files, simply use globs in your import statements.
@import 'styles/**/*.scss';
@import 'content/*.scss';
MIT, see LICENSE.md for details.