Answer the question
In order to leave comments, you need to log in
What is the mistake of the gallp task?
Greetings gentlemen.
There is a task:
// compile sass and css files
gulp.task('sass', function(){
return gulp.src([
'!assets/styles/_*.scss',
'assets/styles/all.scss',
'assets/styles/**/*.scss'
])
.pipe(sourcemaps.init())
.pipe(plumber())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(path.join(content_path, 'css/')));
});
@import "_fonts";
@import "_color";
@import "_base";
@import "_wrapper";
Answer the question
In order to leave comments, you need to log in
And what is not happening?
there is no compilation order in tasks. it will take files from the array and process them
instead of
!assets/styles/_*.scss', и 'assets/styles/**/*.scss'
front/styl/**/!(_)*.styl
assets/styles/**/*.scss
Why such difficulties in the task?
This:
'!assets/styles/_*.scss',
'assets/styles/all.scss',
@import "_fonts";
@import "_color";
@import "_base";
@import "_wrapper";
@import "fonts";
@import "color";
@import "base";
@import "wrapper";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question