D
D
DeveloperV2019-08-26 21:58:57
gulp.js
DeveloperV, 2019-08-26 21:58:57

How to write task correctly?

gulp.task('css', function() {
    return gulp.src([
            'node_modules/normalize.css/normalize.css',
            'node_modules/slick-carousel/slick/slick.css'
        ])
        .pipe(concat('_libs.scss'))
        .pipe(gulp.dest('app/scss'))
        .pipe(browserSync.reload({ stream: true }))
});

Can you tell me how to change this task without concatenation, if I need one normalize.css file without slick-carousel and so that it is also written to the _libs.scss file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
runprogr, 2019-08-26
@developerV

gulp.task('css', function() {
    return gulp.src([
            'node_modules/normalize.css/normalize.css'
        ])
        .pipe(concat('_libs.scss'))
        .pipe(gulp.dest('app/scss'))
        .pipe(browserSync.reload({ stream: true }))
});

As an option like this) Probably not the most elegant solution, but you don’t need to change anything except 1 line, but it will work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question