-
Notifications
You must be signed in to change notification settings - Fork 169
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
How to handle srcset attributes? #148
Comments
Not solving your issue, but
|
Is there a solution to this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm using this loader to combine html sources together. I tried to figure out how I could hanlde the
srcset
attribute of apicture
element properly.I want to auto-resolve the path within the
srcset
the same way like it works withsrc
on a regularimg
tag.For example with the
html-loader
I can passattrs
which will be used to resolved the urls:Is there a similiar way with the handlebars-loader? I currently use the
inlineRequires: '/img/'
option of the handlebars-loader and it works for normalsrc
attributes, but not withsrcset
attributes.So I tried to build a workaround, first using the
handlebars-loader
without theinlineRequires
and pipe the output to thehtml-loader
but it doesn't seem to work because of the output thehandlebars-loader
is producing. Or is there some way I've missed?Thx!
The text was updated successfully, but these errors were encountered: