Answer the question
In order to leave comments, you need to log in
How to set up compiling Sass to Gulp from all folders?
Hello! Tell me how to set up compilation of Sass files in internal folders?
Folder structure:
sass
- components
-- _components.sass
-- blog
- pages
main.sass
gulp.task('styles', function () {
return gulp.src('sass/**/*.sass')
.pipe(sass({
includePaths: require('node-bourbon').includePaths
}).on('error', sass.logError))
// .pipe(rename({suffix: '.min', prefix : ''}))
.pipe(autoprefixer({browsers: ['last 15 versions'], cascade: false}))
// .pipe(minifycss())
.pipe(gulp.dest('app/css'))
.pipe(browserSync.stream());
});
components
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question