gulp-htmlmin 3.0.0

gulp plugin to minify HTML.


Platform: npm

Language: HTML

License: MIT

Keywords: format, gulp, gulpplugin, htm, html, minifier, minification, minify

View on registry:

Direct download link:

Install: npm install [email protected]

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.



3.0.0 September 21, 2016
2.0.0 April 30, 2016
1.3.0 December 11, 2015
1.2.0 October 03, 2015
1.1.4 August 23, 2015
1.1.3 June 17, 2015
1.1.2 June 04, 2015
1.1.1 February 22, 2015
1.1.0 February 12, 2015
1.0.0 January 10, 2015
See all 15 releases

Project Statistics

SourceRank 23
Dependencies 6
Dependent projects 577
Dependent repositories 10.1K
Total releases 15
Latest release
First release
Stars 460
Forks 42
Watchers 10
Contributors 11
Repo Size: 46.9 KB

Top Contributors See all

Shinnosuke Watanabe Jon Schlinkert Steve Lacy Brian Woodward Chris Watson Igor Adamenko John-David Dalton Jose Chirivella Tom Byrer Joel Arvidsson Nico Schlömer

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2017-05-23 21:09:14 UTC