1

I use Font Awesome in angular app, it works fine but when deploying, this error is appear in console

GET https://site.azurewebsites.net/fa-solid-900.f093864079d44808c60d.woff2 404 (Not Found)

I import fontawesome in style.scss

"styles": [ "src/styles.scss", "src/assets/css/fontawesome-all.min.css" ],

here is assets

assets

there is no error in local, only after deploying it, even it's found in dist folder, Should I import them in other way?

Kenana Reda
  • 401
  • 7
  • 22

2 Answers2

2

It's solved by adding woff2 mime type to web.config as mentioned ppolyzos.com/2016/03/16/mime-types-missing-in-azure-websites

Kenana Reda
  • 401
  • 7
  • 22
-3

Try checking in Kudu console and check if it is present on the deployed server.

https://site.scm.azurewebsites.net/fa-solid-900.f093864079d44808c60d.woff2

Deepak Agarwal
  • 398
  • 1
  • 3
  • 15