Closed pedrosousa13 closed 1 year ago
@marco-prontera I made the requested changes.
yeah totally. will make the change.
@marco-prontera changes made, it now accepts a callback function. I also like this implementation :)
Hi @pedrosousa13, I published the new version 3.3.0 Thank you for the contribution 🥳
We have a build that builds out css with
relativeCSSInjection
. I would like to have style tags with different id's as so not to clash.Using this with the SSR approach that I modified in my style injection function works really well https://github.com/egoist/style-inject/pull/28/files
Styles are loaded via SSR with different
id
attributes. This will only run ifstyleId
is specified.I'm adding this PR because I need the id to be the same for server + client so I need it at the vite level.
closes #111