Skip to content

nidorx/gulp-html-improved

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Adds improvements to html templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published