add-asset-html-webpack-plugin icon indicating copy to clipboard operation
add-asset-html-webpack-plugin copied to clipboard

[QUESTION]: Generate id by passing it to the attributes

Open edwardfxiao opened this issue 4 years ago • 0 comments

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",

edwardfxiao avatar Jun 23 '20 15:06 edwardfxiao