# gulp-cleanhtml

> Removes unneeded whitespaces, line-breaks, comments, etc from HTML

Latest version **1.0.3** (published 2017-03-30) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install gulp-cleanhtml
pnpm add gulp-cleanhtml
yarn add gulp-cleanhtml
bun add gulp-cleanhtml
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-03-30 |
| First published | 2014-01-05 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Hemanth.HM |
| Maintainers | hemanth |
| Keywords | log, console, gulpplugin |

## Links

- npm: https://www.npmjs.com/package/gulp-cleanhtml
- Repository: https://github.com/hemanth/gulp-cleanhtml
- Issues: https://github.com/hemanth/gulp-cleanhtml/issues
- npm.io page: https://npm.io/package/gulp-cleanhtml

## Dependencies (3)

- [gulp-util](https://npm.io/package/gulp-util.md) ~3.0.7
- [htmlclean](https://npm.io/package/htmlclean.md) ~3.0.0
- [event-stream](https://npm.io/package/event-stream.md) ~3.3.4

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-03-30
- 1.0.1 — 2016-02-08
- 1.0.0 — 2015-11-20
- 0.1.0 — 2014-11-22
- 0.0.2 — 2014-01-18
- 0.0.1 — 2014-01-05

## 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

---
_Source: https://npm.io/package/gulp-cleanhtml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
