-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Meta tag with image url content #618
Comments
Thanks for the suggestion. |
i'm super keen on resolving this. anyone got some tips or direction i can take here? |
I've noticed the following happens. on build which is perfect. I want to extend that to other meta tags like if anyone can point in the direction to PR that i'll do it :) |
The way I want it to work is that any attribute value starting with |
How does @gaearon - Is that something covered off in |
No, it’s part of We currently specify Relevant code is pretty small: https://github.com/webpack/html-loader/blob/master/index.js |
thanks @gaearon i'll look into it :) |
ah. i know understand we are looking at how this config gets picked up... |
Yep, that’s where it is. |
do we want to take a
|
hmm. i guess the idea of content starting with "./" is sort of better. |
I can’t really imagine why somebody would want to start their attributes with |
additional notes
|
hmm i'm guessing the html-loader guys are not going to approve cause they already have advice on this. |
you think it's worth pushing for a change? |
we could do both. change the prod config in this what's your take @gaearon ? |
I don’t see why not. Interpolation is a possible solution but I haven’t seen
If we just add |
i guess the minimum we could do is just push this... and then encourage people to do the approach @roadmanfong mentioned. shall i set up a PR? |
I’m not really happy supporting this long term and adding custom syntax to HTML. |
Ok no problem. Ill just do that as a temp work around and try to push to the html-loader proj later. |
👍 |
Meh. I think let’s go for Would you mind submitting a PR that removes automatic detection of |
@gaearon can i just confirm you mean to add 2 separate PRs. one to make
and one to remove that config settings from
|
@gaearon another thing. from looking at this test it does sort of look like the @zhuqiacheng? @sheerun? |
also... is there much of a difference between in my head they seem same-ish... ? |
As React shown, javascript is better than any templating language. Allowing For me allowing interpolation is both more powerful and actually easier to maintain in long run. |
OK, will accept a PR that adds interpolation syntax but disables automatic handling of |
on it :) |
Maybe there’s some kind of typo in |
Meh, interpolation syntax is super annoying and hard to understand. |
I drafted a proposal to solve this in #703. Unless we find some fatal flaws, it should come out in 0.5.0. Let me know what you think! |
Closing as this is fixed, and will be released in 0.5.0. |
This is now supported in 0.5.0. Read about using the new See also migration instructions and breaking changes in 0.5.0. |
I 'd like to add something like
I notice that it didn't handle image inside the meta tag.
And I found a solution here
webpack-contrib/html-loader#17 (comment)
All we have to do is minor change in html loader setting
loader: 'html?interpolate=require',
roadmanfong@48bb6cf
The text was updated successfully, but these errors were encountered: