Is there a way to specify gulp-sass
to process SASS files while preserving the structure of the source folder? We do not want them to be minified or combined into one main file. For instance, if we have:
src/
components/
_header.scss
_sidebar.scss
_card.scss
Is it possible to process them into:
dist/
components/
header.css
sidebar.css
card.css
Gulpfile
gulp.task('styles:dist', () => {
return gulp
.src('./src/styles/**/*.+(scss|sass|css)', { base: './' })
.pipe(
sass({
outputStyle: 'expanded',
}).on('error', sass.logError)
)
.pipe(gulp.dest('./dist'));
});
Thank you in advance!