Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hemanth/gulp-cleanhtml
remove unneeded whitespaces, line-breaks, comments, etc from the HTML.
https://github.com/hemanth/gulp-cleanhtml
clean gulp-plugin html
Last synced: about 2 months ago
JSON representation
remove unneeded whitespaces, line-breaks, comments, etc from the HTML.
- Host: GitHub
- URL: https://github.com/hemanth/gulp-cleanhtml
- Owner: hemanth
- Created: 2014-01-05T06:18:27.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T16:12:45.000Z (over 7 years ago)
- Last Synced: 2024-11-01T09:43:00.052Z (2 months ago)
- Topics: clean, gulp-plugin, html
- Language: JavaScript
- Size: 8.79 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-cleanhtml [![NPM version][npm-image]][npm-url] [![Build Status](https://travis-ci.org/hemanth/gulp-cleanhtml.svg?branch=master)](https://travis-ci.org/hemanth/gulp-cleanhtml)
> Cleans your HTML using [htmlclean](https://github.com/anseki/htmlclean)
## Usage
First, install `gulp-cleanhtml` as a development dependency:
```shell
npm install --save-dev gulp-cleanhtml
```Then, add it to your `gulpfile.js`:
```javascript
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.[npm-url]: https://npmjs.org/package/gulp-cleanhtml
[npm-image]: https://badge.fury.io/js/gulp-repl.png