vite_ruby
vite_ruby copied to clipboard
Remove default media: 'screen' for stylesheet tag in line with Rails defaults
Rails now doesn't include the media attribute by default for stylesheet_link_tag but the default for vite_javascript_tag has media: 'screen':
https://github.com/ElMassimo/vite_ruby/blob/98d3d5f452d82cfc25720ed85be83f4b43b45d93/vite_rails/lib/vite_rails/tag_helpers.rb#L44
https://github.com/rails/rails/issues/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.