Please use this approach instead.
Webpacker can automatically create an icon font from SVG files, which is really handy. When you're using the asset pipeline, you can still have an icon font from SVG files, but it requires some manual work.
icon-font-generator
. If you're not using nvm
, run sudo npm install -g icon-font-generator
Configure
section