Napoleonic Political Magnificence

    gulp-imgload

    1.0.7 • Public • Published

    gulp-yfy-img

    优化图片加载

    • jpg修改为渐变式加载
    • png生产一倍图

    安装

        yarn add gulp-yfy-img --dev

    安装依赖

    • mac
        brew install imagemagick --with-webp

    用法

        const gulp = require('gulp');
        const yfyImg=require('gulp-yfy-img');
        gulp.task('default',function(){
            gulp.src('./src/**/*.+(jpg|png)')
            .pipe(yfyImg())
            .pipe(gulp.dest('./dist'))
        })

    options

    待定

    Keywords

    none

    Install

    npm i gulp-imgload

    DownloadsWeekly Downloads

    11

    Version

    1.0.7

    License

    ISC

    Last publish

    Collaborators

    • yuhonyon