Skip to content

nmrugg/gulp-htmin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-htmin

Minify HTML via gulp.

Depreciated

This package has been depreciated in favor of gulp-htmlmin.

Getting Started

Install the module with: npm install gulp-htmin --save-dev

Usage

var gulp = require("gulp");
var htmin = require("gulp-htmin");

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

See the html-minifer docs for options.

Fork

This began as a fork of gulp-htmlmin.

License

MIT

Packages

No packages published

Languages

  • HTML 83.1%
  • JavaScript 16.9%