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>, etc.
Example
html: { additionalAssetSources: { // Custom web component 'html-import': { srcAttributes: ['src'] }, // Add data-* attributes to existing element 'img': { srcAttributes: ['data-src-dark', 'data-src-light'] } } }
OptionalcspNonce
cspNonce?:string
A nonce value placeholder that will be used when generating script/style tags.
Make sure that this placeholder will be replaced with a unique value for each request by the server.
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>, etc.