node-sass-magic-importer
Version:
Custom node-sass importer for selector specific imports, node importing, module importing, globbing support and importing files only once
11 lines • 402 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.sassGlobPatternFactory = void 0;
function sassGlobPatternFactory(path) {
return (base) => {
const { name, ext } = path.parse(base);
return ext ? base : `?(_)${name}@(.css|.sass|.scss)`;
};
}
exports.sassGlobPatternFactory = sassGlobPatternFactory;
//# sourceMappingURL=sass-glob-pattern.js.map
;