Here's a gulp function that hops through the directory structure and compiles css files in the same directory as the corresponding scss file. It’s as simple as our current gulp routine, so we don’t have to abandon scss to use Single Directory Components unless we want to for other reasons
/* This will compile individual css files in the same directory as the corresponding scss file */
function sdcscss() {
return gulp
.src("./assets/styles/**/*.scss", {
base: "./assets/styles/",
})
.pipe(sassGlob({}))