Answer the question
In order to leave comments, you need to log in
How to compile all module styles in main.css without adding imports?
Hello.
I decided to personalize the yeo generator yeogurt a little for my tasks. Successfully added coffeescript to the tasks, updated jade to pug, it remains only to figure out how to import styles in main.css. Here I got a snag and I can’t figure out which dest should be specified in the sass task so that the compiler looks for all the styles in src/modules and src/styles and compiles them into one tmp/main.css.
Here are the pipes related to source and compilation paths
gulp.task('sass', function() {
gulp.src([path.join(dirs.source, dirs.styles, '**/*.{sass,scss}'),
path.join(dirs.source, dirs.modules, '**/*.{sass,scss}')])
.pipe(plugins.sass({
outputStyle: 'expanded',
precision: 10,
includePaths: [
path.join(dirs.source, dirs.styles,'**/*.{sass,scss}'),
path.join(dirs.source, dirs.modules,'**/*.{sass,scss}')
]
}))
.pipe(gulp.dest(dest))
});
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