gulp-imgload
v1.0.7
Published
图片加载优化,jpg渐变式progressive加载,png生成一倍图
Downloads
2
Readme
gulp-yfy-img
优化图片加载
- jpg修改为渐变式加载
- png生产一倍图
安装
yarn add gulp-yfy-img --dev
安装依赖
- mac
brew install imagemagick --with-webp
windows
下载安装ImageMagick
用法
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
待定