gulp-responsive-imgz
gulp-img-retina
repo)
(clone of the innactive
add img attribute 'srcset' for retina
Prerequisites
You must have retina images in the folder which the original image in.
Install
npm install gulp-responsive-imgz
Usage
var gulp = ;var imgRetina = ;var retinaOpts =// Your options here.;gulp;
You put html in:
And get html out:
Options (Optional)
options.suffix
Type: Object
Default: {1: '', 2: '@2x'}
The suffix will insert to image's path, the key is resolution, and value is suffix.
Note
SVG's are ignored