Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Wildhoney/gulp-processhtml

Process html files at build time to modify them depending on the release environment
https://github.com/Wildhoney/gulp-processhtml

Last synced: 3 months ago
JSON representation

Process html files at build time to modify them depending on the release environment

Awesome Lists containing this project

README

        

# gulp-processhtml

Gulp plugin uses Denis Ciccale's [node-htmlprocessor](https://github.com/dciccale/node-htmlprocessor)
to process/transform html files.

![Travis](http://img.shields.io/travis/Wildhoney/gulp-processhtml.svg?style=flat)
 
![npm](http://img.shields.io/npm/v/gulp-processhtml.svg?style=flat)
 
![License MIT](http://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)

* **npm:** `npm install gulp-processhtml --save-dev`

## Gulpfile

```js
var gulp = require('gulp'),
processhtml = require('gulp-processhtml')
opts = { /* plugin options */ };

gulp.task('default', function () {
return gulp.src('./*.html')
.pipe(processhtml(opts))
.pipe(gulp.dest('dist'));
});
```

## Example Usage

You might need to change some attributes in your html, when you're releasing
for a different environment.

Using this plugin, you can transform this:

```html









```

To this:

```html


Goodbye Livereload...

```

## Credits

[Denis Ciccale](https://twitter.com/dciccale)