gulp-htmlmin 0,0 editorconfig travis-ci npm

Minify HTML

3 years after

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 (c) 2014-2015 Jon Schlinkert
Released under the MIT license


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

Related Repositories

blendid

blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and ...

blendid

blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and ...

essential-gulp-plugins

essential-gulp-plugins

Living list of most useful plugins for Gulp ...

awesome-gulp

awesome-gulp

:tropical_drink: A curated list of awesome gulp resources, plugins, and boilerpl ...

automating-your-workflow-with-gulp

automating-your-workflow-with-gulp

使用Gulp来构建你的workflow ...


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