Skip to content

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

@michael-ciniawsky

Description

@michael-ciniawsky

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' ] }
   }
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions