The Problem
I'm using Semantic UI, the app renders icon fonts perfectly in development:
Error Details
In development, this file is available at:
http://localhost:3000/assets/semantic-ui-css/themes/default/assets/fonts/icons.woff2
In production, I get these errors:
planetlauncher.herokuapp.com/:1 GET https://planetlauncher.herokuapp.com/assets/themes/default/assets/fonts/icons.woff planetlauncher.herokuapp.com/:1 GET https://planetlauncher.herokuapp.com/assets/themes/default/assets/fonts/icons.ttf 404 (Not Found)
Background
- Webpack was installed bundled with the
rails new --webpack:reactcommand. - Semantic UI installed via
yarn add semantic-ui-css Application.cssincludes:
*= require 'semantic-ui-css/semantic.min.cssassets.rbincludes:
Rails.application.config.assets.paths << Rails.root.join('node_modules')Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
Also, I cannot precompile assets and must fallback to the heroku assets pipeline because of my react web pack dependence.


node_moduleswill not work because it's referenced by for exampleurl('asset.css')rather thanasset-url('asset.css')(which would get the fingerprinted url). Did you figure out a way around this?