Skip to content

[v1.0.0-alpha (Feature)] support explicit { tag: 'attr' } patterns for URL resolving (options.url) #159

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

Closed
michael-ciniawsky opened this issue Dec 15, 2017 · 1 comment

Comments

@michael-ciniawsky
Copy link
Member

Feature

The current asset resolving (<img src="path/to/file.png">) is likely too aggressive for real projects and doesn't match custom attribute names like <tag custom-src> atm.

ℹ️ The [option] design/interface still needs triage and any feedback/ideas on this are highly welcome and appreciated

webpack.config.js

{
   loader: 'html-loader'
   options: {
       url:  { tag: 'attr' } && { tag: [ 'attr', 'attr' ] }
   }
}
@michael-ciniawsky michael-ciniawsky added this to the 1.0.0 milestone Dec 15, 2017
@michael-ciniawsky michael-ciniawsky self-assigned this Dec 15, 2017
@michael-ciniawsky michael-ciniawsky changed the title [v1.0.0-alpha (Feature)] add explicity { tag: 'attr' } patterns for URL resolving (options.url) [v1.0.0-alpha (Feature)] support explicit { tag: 'attr' } patterns for URL resolving (options.url) Feb 6, 2018
@benjaminpreiss
Copy link

How was this feature implemented?
As far as I understand this is about custom attributes, like for example:

<video
    poster="../img/example.jpg">
</video>

I there a part in the doc that references this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants