Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Wildhoney/gulp-processhtml
- Owner: Wildhoney
- License: mit
- Created: 2014-01-11T17:40:21.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-02-27T18:31:55.000Z (over 1 year ago)
- Last Synced: 2024-07-10T18:23:33.988Z (4 months ago)
- Language: JavaScript
- Size: 192 KB
- Stars: 77
- Watchers: 7
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)