gulp-htmlmin

Minify HTML.

npm install gulp-htmlmin
41 downloads in the last day
294 downloads in the last week
1 070 downloads in the last month

gulp-htmlmin NPM version

Minify HTML.

Getting Started

Install the module with: npm install gulp-htmlmin

Usage

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

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

See the html-minifer docs for options.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Author

License

Copyright (c) 2014 Jon Schlinkert Licensed under the MIT license.

npm loves you