Answer the question
In order to leave comments, you need to log in
How to correctly include a file with mixins in the Gulp SASS compilation stream with a modular project structure?
Hello everyone, I recently redesigned my starter template. Made it modular. Now I have this:
SASS
helpers
_functions.scss
_helpers.scss
_functions.scss
_mixins.scss
_variables.scss
@import '../helpers/functions';
@import '../helpers/helpers';
@import '../helpers/mixins';
@import '../helpers/variables';
gulp.watch('./dev/sass/global/*.scss', ['sass-global'])
gulp.watch('./dev/sass/layout/*.scss', ['sass-layout'])
gulp.watch('./dev/sass/pages/*.scss', ['sass-pages'])
gulp.watch('./dev/sass/features/*.scss', ['sass-features'])
gulp.watch('./dev/sass/helpers/*.scss', ['sass-helpers'])
Answer the question
In order to leave comments, you need to log in
You need to configure the task so that it looks at the entire sass
Task folder
gulp.task('sass', function() {
gulp.src('/dev/sass/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('место куда должно компилится'))
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question