`srcset` in img support?
itslooklike opened this issue · 2 comments
itslooklike commented
Hello!
I try to use srcset
in img tag, but plugin not resolve urls.
In pure html, parcel resolve this ursl, but in pug - not.
Pure HTML:
<img src='./assets/restaurants/restaurant-mcdonalds.png', srcset='./assets/restaurants/restaurant-mcdonalds@2x.png 2x'>
Pug
img(src='./assets/restaurants/restaurant-mcdonalds.png', srcset='./assets/restaurants/restaurant-mcdonalds@2x.png 2x')
img(src='./assets/restaurants/restaurant-mcdonalds.png')&attributes({'srcset': './assets/restaurants/restaurant-mcdonalds@2x.png 2x'})
i use:
"parcel-bundler": "1.6.2",
"parcel-plugin-pug": "0.2.5",
node v9.5.0