How do I load local fonts with @rails/webpacker?
问题 I’m having an issue loading local font files with @rails/webpacker . The fonts are loaded in the development environment but not in the production environment. It seems like a really simple issue but I have just had so much trouble with it. Below is my @font-face code. My fonts are stored in app/assets/images/fonts app > assets > stylesheets >config > _fonts.scss @font-face { font-family: "Axiforma"; src: url("fonts/Kastelov-AxiformaRegular.eot"); /* IE9 Compat Modes */ src: url("fonts