Author:
Source
Vite is fast and powerful replacement for webpacker or the traditional Rails asset pipeline, and inline SVGs are quickly becoming the popular way to render easy-to-style icons on the web. This post explains two approaches to inlining SVGs when using Vite-Rails: using the inline_svg gem, or creating a custom view helper. https://mattbrictson.com/blog/inline-svg-with-vite-rails