Rails now doesn't include the media attribute by default for stylesheet_link_tag but the default for vite_javascript_tag has media: 'screen':
rails/rails#41213
It'd be a breaking change but would keep things in line with the new rails defaults.
vite_stylesheet_tag would now also not return a media attribute since it relies on stylesheet_link_tag without any default options.
Rails now doesn't include the media attribute by default for
stylesheet_link_tagbut the default forvite_javascript_taghasmedia: 'screen':vite_ruby/vite_rails/lib/vite_rails/tag_helpers.rb
Line 44 in 98d3d5f
rails/rails#41213
It'd be a breaking change but would keep things in line with the new rails defaults.
vite_stylesheet_tagwould now also not return amediaattribute since it relies onstylesheet_link_tagwithout any default options.