egoist / style-inject

Inject style tag to document head.
MIT License
48 stars 21 forks source link

Feature Request: More control over injection #7

Open mririgoyen opened 5 years ago

mririgoyen commented 5 years ago

I would like to be able to pass options to style-inject that allows me to place meta tags on the <style> tags injected into the head.

For example, I could use the CSS Module name like: <style data-meta="MyModule" />.

This would allow me to add context to the style, and additionally target this specific <style> tag for updates during development (with things such as hot-reloading).

ivoilic commented 2 years ago

@goyney I've added this feature in an improved version of this package: style-implant