germanyt / gulp-img-retina

add img attribute 'srcset' for retina
MIT License
3 stars 3 forks source link

Remove @2x for .svg images #3

Open ArtemGoldsmith opened 6 years ago

ArtemGoldsmith commented 6 years ago

How can I stop converting html <img src="images/image.svg"> to <img src="images/image@2x.svg"> We don't need @2x svg files. I propose to remove svg extension from var reImageSrc = /^((?:(?:http|https):\/\/)?(?:.+))(\.(?:gif|png|jpg|jpeg|webp|svg))$/;

noudadrichem commented 6 years ago

+1 on this!

eliwilliamson commented 6 years ago

@ArtemGoldsmith and @noudadrichem i cloned this and republished since @germanyt has been inactive for over 2 years. feel free to use the updated version here:

https://www.npmjs.com/package/gulp-responsive-imgz

ArtemGoldsmith commented 6 years ago

@eliwilliamson, thanks!