Skip to content
View colincolin1231's full-sized avatar

Block or report colincolin1231

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
colincolin1231/README.md

gulp-webp-html-nosvg

This is a modified version of the plugin gulp-webp-html. Here was fixed thebug that added two dots before webp to the final html file. No SVG format.

Example

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

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


// Input
<img src="/images/catalogImage.jpg" srcset="/images/catalogImage2x.jpg 2x">

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

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

// Output
<img src="/images/catalogImage.svg">

Install

npm i --save-dev gulp-webp-html-nosvg

Usage

let webphtml = require('gulp-webp-html-nosvg');

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

Pinned Loading

  1. Accepted Accepted Public

    PyTorch implementation of SSQL (Accepted to ECCV2022 oral presentation)

  2. colincolin1231 colincolin1231 Public

    colincolin1231

    JavaScript

  3. RNA RNA Public

    Code and data repository for the 2020 physalia course on single cell RNA sequencing.

    JavaScript