gulp-html-improved
v0.2.4
Published
Gulp plugin for html-improved
Downloads
5
Maintainers
Readme
gulp-html-improved
Gulp plugin for html-improved
htmlImproved pipe
Run this task with the gulp
command.
Options
verbose
Type: Boolean
Show files info
locals|data
Type: Object
Sets the variables passed to Html Improved during template compilation. Any data can be passed to the template.
const htmlImproved = require('gulp-html-improved');
const htmlLocals = {
package: require('./package.json'),
project: require('./project.json'),
otherVar: 'value'
}
gulp.task('html', function () {
return gulp
.src('src/**/*.html')
.pipe(htmlImproved({locals: htmlLocals}))
.pipe(gulp.dest('dist'));
});