Closed SamHasler closed 9 years ago
Yes, the way is JavaScript and broccoli-merge-trees ;) Something along the lines of:
var trees = _.map(glob.sync('theme*/sass/main.scss', function(sassFile) {
return compileSass(inputTrees, sassFile, sassFile.replace(/.scss$/, '.css');
}));
return mergeTrees(trees);
That's exactly what I needed :joy:, thanks!
@joliss - Looks like this was answered, seems like it can be closed.
Is there a way to do globbing with broccoli to pass multiple
main.scss
files tocompileSass
?e.g.
theme*\sass\*.scss
->theme*\css\*.css
(My use case is that we have multiple themes, each with their own
main.scss
, that each import several_module.scss
files)