1.1.7 • Published 7 years ago
gulp-html-to-object v1.1.7
gulp-html-to-object
The gulp plugin of the lightweight HTML parser html-to-object.
Install
$ npm install --save-dev gulp-html-to-object
Usage
// source file
const modal = h2o('./src/file.html');
console.log(modal);
// gulpfile.js
const gulp = require('gulp');
const h2o = require('gulp-html-to-object');
gulp.task('javascript', () => {
return gulp.src('./src/*.js')
.pipe(h2o([options]))
.pipe(gulp.dest('./dist'));
});