-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dumb Question: How to serve css files? #227
Comments
I get them by |
🤦 |
Uh oh:
Looks like a need a custom loader ... any tips to getting that to work? |
Ooh... fonts... We have a ticket open for custom loader support. But a new asset type might be easier have built-in support for, since the development asset servers will need to know about it. They live right in Good issue @withinboredom! |
@withinboredom Question: I'm assuming you just want to leave the URL in the CSS file, right? You aren't looking for any kind of inlining of the font, I presume. I could imagine two paths:
I'd vote for quick and dirty for now. Thoughts? And FYI, I think the particular lines involved are at https://github.com/redfin/react-server/blob/master/packages/react-server-cli/src/compileClient.js#L130 |
@withinboredom - Closing this as "not a dumb question", and giving the web font issue that spawned from it a dedicated ticket: #233. Thanks. :) |
I put my built css files into assets/styles.css , however, when I try to load them from the client I get the 404 error:
Cannot GET /assets/styles.min.css
Am I doing something wrong? Do I need something special in my routes file?
The text was updated successfully, but these errors were encountered: