You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a41404b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/config/shared-options.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,48 @@ Enables the tsconfig paths resolution feature. `paths` option in `tsconfig.json`
214
214
215
215
A nonce value placeholder that will be used when generating script / style tags. Setting this value will also generate a meta tag with nonce value.
216
216
217
+
## html.additionalAssetSources
218
+
219
+
-**Type:**`Record<string, HtmlAssetSource>`
220
+
221
+
```ts
222
+
interfaceHtmlAssetSource {
223
+
srcAttributes?:string[]
224
+
srcsetAttributes?:string[]
225
+
filter?: (data: {
226
+
key:string
227
+
value:string
228
+
attributes:Record<string, string>
229
+
}) =>boolean
230
+
}
231
+
```
232
+
233
+
Define additional HTML elements and attributes to be treated as asset sources. This extends the built-in list that includes standard elements like `<img src>`, `<video src>`, `<link href>`, etc.
234
+
235
+
This is useful when using custom web components or non-standard attributes (like `data-*`) that reference assets.
0 commit comments