L
L
leobrn2020-08-09 16:12:40
Less
leobrn, 2020-08-09 16:12:40

How to set up gulp less properly?

Hello. Prompt on gulp-less.
1) What needs to be written so that it does not compile files before which there is _ (for example, _vars.less).
2) To put/leave a line break between

Task selectors:

gulp.task('less', function () {
    return gulp.src(src_path)
        .pipe(less())
        .pipe(gulp.dest('app/css'))
        .pipe(browserSync.reload({stream: true}));
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
leobrn, 2020-08-09
@leobrn

solved the first question like this:

const src_path = ['app/less//*.less', '!app/less//_*.less'];

to solve the second question, I used gulp-cssbeautify

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question