nuxt-modules / partytown

Partytown integration for Nuxt. Run third-party scripts from a web worker.
MIT License
316 stars 8 forks source link

feat: add ids for injected scripts #333

Closed ahmadqwer closed 7 months ago

ahmadqwer commented 12 months ago

Added IDs to Partytown scripts in nuxt3 as it was added on nuxt2.

ahmadqwer commented 12 months ago

I have a case where i need to select Partytown scripts in the html.

danielroe commented 12 months ago

What's your use-case?

ahmadqwer commented 12 months ago

What's your use-case?

In my project. i remove all scripts from Html using render:response hook, i need an id to partytown scripts (or any attribute) to be able to not removing them from the Html.

abdaldeen commented 12 months ago

I have the same issue It would be great to add IDs to the scripts