gc

gulp-cleanhtml

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

Showing:

Popularity

Downloads/wk

516

GitHub Stars

19

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

3

Size (min+gzip)

25.3KB

License

BSD-2-Clause

Type Definitions

Tree-Shakeable

No?

Categories

Reviews

Average Rating

5.0/51
Read All Reviews

Top Feedback

1Great Documentation
1Easy to Use

Readme

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.

Rate & Review

Great Documentation1
Easy to Use1
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial