Skip to content

remove unneeded whitespaces, line-breaks, comments, etc from the HTML.

Notifications You must be signed in to change notification settings

hemanth/gulp-cleanhtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-cleanhtml NPM version Build Status

Cleans your HTML using htmlclean

Usage

First, install gulp-cleanhtml as a development dependency:

npm install --save-dev gulp-cleanhtml

Then, add it to your gulpfile.js:

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

gulp.task('default', function(){
  gulp.src('index.html')
    .pipe(cleanhtml())
    .pipe(gulp.dest('build/index.html'));
});

The above will remove unneeded whitespaces, line-breaks, comments, etc from the HTML.

About

remove unneeded whitespaces, line-breaks, comments, etc from the HTML.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published