If I build and deploy the app to my server everything looks correct, all the icons are there. However, when I add the --prod flag and then deploy, all the igx-icon elements are missing. I just see the text, like arrow_drop_down instead. What am I missing?
Hello Scott,
If the material icons are missing in your prod build, I suspect that there are not being bundled correctly with your application. Where are you "linking" them? Inside your styles, index.html or angular.json configuration?
A good practice is to put the material icon font files somewhere inside the src/assets directory of your project as the Angular CLI is configured to properly bundle/reference that folder when building/serving the app.
Hi Scott,
If you're using external SVG icons the process is similar as described by Radoslav. The .svg files should be placed in src/assets and ensure they are properly bundled and deployed on the server.