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
- Host: GitHub
- URL: https://github.com/posthtml/gulp-htmlnano
- Owner: posthtml
- License: mit
- Created: 2016-01-20T15:09:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-20T15:12:04.000Z (about 9 years ago)
- Last Synced: 2024-10-29T21:06:03.256Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gulp-htmlnano
[](http://badge.fury.io/js/gulp-htmlnano)
[](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'));
});
```