Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Icons missing during production deploy
posted

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?

Parents
  • 845
    Suggested Answer
    Offline posted

    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.

Reply Children