oblador / gulp-htmlmin

Minify HTML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-htmlmin NPM version Build Status

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.

About

Minify HTML

License:MIT License


Languages

Language:JavaScript 100.0%