gulp-html-improved

0.2.4 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gulp-html-improved

    Weekly Downloads

    1

    Version

    0.2.4

    License

    none

    Unpacked Size

    21.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • alexrodin