Jeff2Ma / postcss-lazyimagecss

A PostCSS plugin that generates images's CSS width & height properties automatically.
MIT License
39 stars 1 forks source link

HiDPI support #1

Closed ai closed 7 years ago

ai commented 7 years ago

Hi. Awesome plugin.

Maybe we should add retina/HiDPI support too?

width: 16px → width: 8px

Jeff2Ma commented 7 years ago

Hi, so happy to get a issue for the author of PostCSS! In fact, this plugin already support retina/HiDPI image. When you put the image file likedemo@2x.png, it will automatically half the size of width and height value and add background-size properties.

ai commented 7 years ago

Awesome!

Maybe we should add it to docs?

Jeff2Ma commented 7 years ago

Sure! Already update README.md!