gulp-htmlmin 0,0 editorconfig travis-ci npm

Minify HTML

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

Usage

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

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

See the html-minifier docs for options.

Run tests

Install dev dependencies:

npm i && mocha

Contributing

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

Authors

Jon Schlinkert

Shinnosuke Watanabe

License

Copyright © 2014-2015 Jon Schlinkert
Released under the MIT license


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

Related Repositories

gulp-htmlmin

gulp-htmlmin

Minify HTML ...

gulp-keeper

gulp-keeper

Gulp deployment system: compile jade, haml, htmlmin, scss, less, postcss, minify-css, coffescript, uglify, imagemin and upload sftp only changed files. ...

gulp-base

gulp-base

gulp脚手架:browser-sync、 htmlmin、 imagemin、 jshint、 minify-css、 notify、 rev、 sass、 swig、 uglify、 jshint ...


Top Contributors

shinnn jonschlinkert stevelacy doowb igoradamenko cwonrails oblador jdalton JoseChirivella14 nschloe tomByrer

Dependencies

package version
bufferstreams ^1.1.0
gulp-util ^3.0.7
html-minifier ^3.0.3
object-assign ^4.0.1
readable-stream ^2.0.2
tryit ^1.0.1
dev @shinnn/eslint-config-node-legacy ^2.0.0
chai ^3.4.0
eslint ^2.4.0
mocha *
simple-bufferstream ^1.0.0
vinyl ^1.1.0

Releases

-   v3.0.0 zip tar
-   v2.0.0 zip tar
-   v1.3.0 zip tar
-   v1.2.0 zip tar
-   v1.1.4 zip tar
-   v1.1.3 zip tar
-   v1.1.2 zip tar
-   v1.1.1 zip tar
-   v1.1.0 zip tar
-   v0.2.0 zip tar
-   v0.1.3 zip tar
-   v0.1.2 zip tar
-   1.0.0 zip tar