Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
voischev committed Sep 24, 2015
1 parent 3ba1df4 commit a2ab781
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
# gulp-posthtml
[![npm version](https://badge.fury.io/js/gulp-posthtml.svg)](http://badge.fury.io/js/gulp-posthtml)

## Install
```
npm install --save-dev gulp-posthtml
```
Install required PostHTML [plugins](https://www.npmjs.com/search?q=posthtml) separately.

## Usage

```js
var posthtml = require('gulp-posthtml');
var gulp = require('gulp');

gulp.task('posthtml', function () {
var plugins = [
require('posthtml-doctype')('<!DOCTYPE html>')
require('posthtml-custom-elements')(),
];

var options = { closingSingleTag: 'slash' };


return gulp.src('./html/*.html')
.pipe(posthtml(plugins, options))
.pipe(gulp.dest('./dest'));
});
```

0 comments on commit a2ab781

Please sign in to comment.