Answer the question
In order to leave comments, you need to log in
How to collect all styl-files in 1 css?
The question is simple and frequent, but the answer could not be found here.
There are two adjacent folders with directories that contain styl files. Previously, I wrote each new styl to this file, then I thought about it and simply abandoned all the styl files that would be created in the directories:
@import 'blocks/*'
@import 'helpers/*'
gulp.task('serve', ['styl'], function() {
server.init({
server: 'src',
notify: true,
open: true,
cors: true,
ui: false
});
gulp.watch('src/blocks/**/*.styl', ['styl']);
gulp.watch('src/blocks/**/*.pug', ['pug']);
gulp.watch('src/*.html').on('change', server.reload);
gulp.watch('src/css/main.css').on('change', server.reload);
run(
'pretty'
);
});
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