Answer the question
In order to leave comments, you need to log in
How to sort scss files when building with Gulp?
There is such a gulp task to compile scss and merge into one file:
gulp.task('scss', function () {
clear.sync(path.clear.style);
gulp.src(['app/html/**/*.scss', 'app/scss/**/*.scss'])
.pipe(filter(function (file) {
return !/\/_/.test(file.path) && !/^_/.test(file.relative);
}))
<b> .pipe(scss({outputStyle: 'nested'})
</b> .on('error', notify.onError(
{
message: "<%= error.message %>",
title: "Sass Error!"
}))
)
.pipe(autoprefixer("last 3 version"))
.pipe(prettify({
indent_size: 3
}))
.pipe(concat('style.css'))
.pipe(gulp.dest('build/css/'))
.pipe(browserSync.reload({stream: true}))
});
body {
font-family: 'Proxima Nova', sans-serif;
font-size: 18px;
min-width: 1200px;
}
....
Answer the question
In order to leave comments, you need to log in
Why is it not suitable to process only main.scss in a gallop, and already include all the necessary style files in the right order?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question