Hi all, there is this structure:
sass
|---->
templates
-----|---->fonts.scss
-----|---->elements.scss
-----|---->variables.scss
|---->
main.scss
Files from folder
templates added to the
main.scss using
@import.
Question: how to make during compilation I had in the folder dist/css only the file main.css?
This option ignores the Tusk is not suitable, because I have many nested pages, which will be your main.scss.
gulp.task('sass', function () {
return gulp.src(['src/**/*.scss, '!src/**/*_.scss'])
.pipe(gulp.dest('dist/css'))
});