An open API service indexing awesome lists of open source software.

https://github.com/posthtml/gulp-htmlnano

Minify HTML with htmlnano
https://github.com/posthtml/gulp-htmlnano

Last synced: 11 months ago
JSON representation

Minify HTML with htmlnano

Awesome Lists containing this project

README

          

# gulp-htmlnano
[![npm version](https://badge.fury.io/js/gulp-htmlnano.svg)](http://badge.fury.io/js/gulp-htmlnano)
[![Build Status](https://travis-ci.org/posthtml/gulp-htmlnano.svg?branch=master)](https://travis-ci.org/posthtml/gulp-htmlnano)

Minify HTML with [htmlnano](https://github.com/posthtml/htmlnano).

## Install
```
npm install --save-dev gulp-htmlnano
```

## Usage
```js
var gulp = require('gulp');
var htmlnano = require('gulp-htmlnano');
var options = {
removeComments: false
};

gulp.task('default', function() {
return gulp
.src('./index.html')
.pipe(htmlnano(options))
.pipe(gulp.dest('./build'));
});
```