Skip to content

TigroWeb/gulp-webp-html2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-webp-html2

My version gulp-webp-html. Fixed bug with the disappearance of line breaks after the execution of the plugin.

Example

// Input
<img src="/images/catalogImage.jpg">

// Output
<picture>
    <source srcset="/images/catalogImage.webp" type="image/webp">
    <img src="/images/catalogImage.jpg">
</picture>

Install

npm i -D git://github.com/TigroWeb/gulp-webp-html2.git

Usage

var GulpWebpHtml2 = require('gulp-webp-html2');

gulp.task('html',function(){
    gulp.src('./assets/**/*.html')
        .pipe(GulpWebpHtml2())
        .pipe(gulp.dest('./public/'))
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published