Please do not report issues related to HTML parsing and output on this repository. Report those issues to the html-minifier issue tracker.
See the html-minifer docs for all available options.
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
gulp.task('minify', () => {
return gulp.src('src/*.html')
.pipe(htmlmin({ collapseWhitespace: true }))
.pipe(gulp.dest('dist'));
});