gulp-minify-html

Minify html with minimize.

Deprecation warning

This package has been deprecated in favor of gulp-htmlmin, which should be faster and more comprehensive.

Remember, this plugin is only a thin wrapper around minimize.

If you are having HTML related issues, please consider looking into minimize/issues before raising your issue here.

Use npm.

npm install --save-dev gulp-minify-css
var minifyHTML = require('gulp-minify-html');

options: Object (optional)
Return: Object (stream.Transform)

Options are directly passed to the minimize constructor, which means all minimize options are available.

var gulp = require('gulp');
var minifyHTML = require('gulp-minify-html');
 
gulp.task('minify-html', function() {
  return gulp.src('src/*.html')
    .pipe(minifyHTML({ empty: true }))
    .pipe(gulp.dest('dist'));
});

MIT © Murphy Danger