-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
My font-icons and logo images have failed to load when i use the reactjs production build(npm run build) #50
Comments
Hello there @bogere , Thank you for your interest in working with our products. All the best, |
You are welcome, |
yes these font icons cannot load easily.
this is where iam bit stuck still solving it.
|
Hello there @bogere , To solve this issue:
Go inside That will do the trick. All the best, |
@einazare
|
Hello there @bogere , Please download again the product and only make the above changes. All the best, |
@einazare Thank you i was able to resolve the above problem. |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
The font icons and logo images used should load normally in the production build
Current Behavior
The web application runs normally but the font icons and the logo images do not load
#My reason
The font icons should load normally even in the production build
My font-icons have failed to load when i use the reactjs production build(npm run build)
Yet according to the documentation(https://facebook.github.io/create-react-app/docs/adding-images-fonts-and-files), as long as import the CSS file from JS that contains the
font icons, the fonts and css will have to go through the build pipeline,
get hashes during compilation so that browser caching works correctly, and that you get compilation errors if the files
are missing. so it must work without any other configuration
so please if you have done
npm run build,
what changes did you make to your index.html file so thatfont icons can work in your production build, i removed the relative path(/static/main.js.878999) for the css to work
The build command added the font icons in the static/media folder
The text was updated successfully, but these errors were encountered: