add-asset-html-webpack-plugin
add-asset-html-webpack-plugin copied to clipboard
[QUESTION]: Generate id by passing it to the attributes
Is it possible to pass id
to the attributes
?
I want to generate the id <link href="/theme.css" rel="stylesheet" id="my-them-selector">
new AddAssetHtmlPlugin({
files: `${i.id}.html`,
filepath: 'dummyFile',
typeOfAsset: 'dummyExt',
includeSourcemap: false,
attributes: {id: 'my-them-selector'},
})
I am using "add-asset-html-webpack-plugin": "^3.1.3",