fix: add crossorigin attribute to style tag
Description 📖
This pull request adds the crossorigin attribute to styles injected via the vite_javascript_tag.
Background 📜
Vite adds the crossorigin to styles tags by default, see code in Vite.
The Fix 🔨
Vite adds a default crossOrigin = '' attribute to stylesheets. Therefore, this gem should also add the crossorigin to the stylesheet_link_tag options. In addition, the default value of "anonymous" changes to "" which has the identical meaning according to MDN Docs so the default value is the same as in Vite.
Fixes https://github.com/ElMassimo/vite_ruby/issues/528
Screenshots 📷
The PR was updated to also change the crossorigin default value from "anonymous" to an empty string "". This means the same, see MDN Docs. However, Vite also uses an empty string for the crossorigin so these values should match.
Is there any news on this?