Skip to content

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

@edwardfxiao

Description

@edwardfxiao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions