Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edwardfxiao opened this issue Jun 23, 2020 · 0 comments
Open

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

edwardfxiao opened this issue Jun 23, 2020 · 0 comments

Comments

@edwardfxiao
Copy link

edwardfxiao commented Jun 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant