HTML JavaScript
Latest commit 8e4bd06 Sep 21, 2016 @doowb doowb 3.0.0

gulp-htmlmin NPM version Build Status

gulp plugin to minify HTML.

Issues with the HTML parser and output should be reported on the html-minifier issue tracker.

Install with npm

npm i gulp-htmlmin --save-dev


var gulp = require('gulp');
var htmlmin = require('gulp-htmlmin');

gulp.task('minify', function() {
  return gulp.src('src/*.html')
    .pipe(htmlmin({collapseWhitespace: true}))

See the html-minifier docs for options.

Run tests

Install dev dependencies:

npm i && mocha


Pull requests and stars are always welcome. For bugs and feature requests, please create an issue


Jon Schlinkert

Shinnosuke Watanabe


Copyright (c) 2014-2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb on January 10, 2015.