Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using srcset attribute in img tags #15

Closed
lbweb opened this issue Nov 30, 2018 · 1 comment
Closed

Using srcset attribute in img tags #15

lbweb opened this issue Nov 30, 2018 · 1 comment

Comments

@lbweb
Copy link

lbweb commented Nov 30, 2018

Hey there!
I was wondering how you could configure so webpack processes the "srcset" attribute on img tags?
<img src="assets/cc-lockup.png" srcset="assets/cc-lockup@2x.png 2x, assets/cc-lockup@3x.png 3x" class="CC-Lockup">

Currently this code breaks because webpack doesn't make a copy of the '2x' and '3x' images

@shamin
Copy link
Owner

shamin commented Dec 3, 2018

@lbweb Sorry for the late reply. I replaced html-loader with html-srcsets-loader to make the srcset work. It's working fine now. Can you please check it out?

@shamin shamin closed this as completed Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants