Answer the question
In order to leave comments, you need to log in
How to select several file types at once in gulp (how to compress php and html)?
I don’t know how to ask a question in Google, I need to compress the html that is in files with the php extension with one html-min task
gulp.task('html', function() {
return gulp.src('*.html')
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest('dist'))
});
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