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

Allow "any" tag in attributes.list[0].tag #267

Closed
andreyvolokitin opened this issue Mar 25, 2020 · 1 comment
Closed

Allow "any" tag in attributes.list[0].tag #267

andreyvolokitin opened this issue Mar 25, 2020 · 1 comment

Comments

@andreyvolokitin
Copy link

  • Operating System: any
  • Node Version: any
  • NPM Version: any
  • webpack Version: any
  • html-loader Version: any

Feature Proposal

Would it make sense to support any tag inside attributes.list[0].tag? I.e.:

{
  tag: '*',
  attribute: 'data-lazy',
  type: 'src',
 },

Feature Use Case

In this case we could skip writing many objects for each tag with same custom attribute (i.e. data-lazy)


I can help with PR

@alexander-akait
Copy link
Member

Yep, let's do it, if the tag property do not setup-ed handle all tags instead tag: '*'

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