0.2.4 • Published 4 years ago

gulp-html-improved v0.2.4

Weekly downloads
2
License
-
Repository
github
Last release
4 years ago

gulp-html-improved npm package

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'));
});