Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 845 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 845 Bytes

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