Answer the question
In order to leave comments, you need to log in
How to apply gulp-clean-css to a less+css stream?
In Gulp I did the following task:
gulp.task('css', function() {
return streamqueue({ objectMode: true },
gulp.src('src/css/*.css'),
gulp.src('src/less/*.less')
.pipe(less())
)
.pipe(prefix('last 2 versions'))
.pipe(concat('production.min.css'))
.pipe(cleanCSS({ level: 2 }))
.pipe(gulp.dest('./dist/css'))
.pipe(reload({ stream: true }))
});
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