aspnetcore-angular-universal icon indicating copy to clipboard operation
aspnetcore-angular-universal copied to clipboard

How to include font-awesome

Open juliocgm83 opened this issue 9 years ago • 5 comments

Hello Team I am having hard time trying to include font-awesome in the project, can you guys to provide an example that show how to do that? and what is the way to include a css file that an external component required ? Thanks

juliocgm83 avatar Nov 04 '17 01:11 juliocgm83

You add font-awesome to your package.json

In your app.component.scss file you then have to import it

/* Import FontAwesome */
$fa-font-path: '~font-awesome/fonts';
@import "~font-awesome/scss/font-awesome";

I guess you'd have to import additional css files there as well.

schnerring avatar Nov 04 '17 16:11 schnerring

Duplicate.

MaklaCof avatar Nov 06 '17 07:11 MaklaCof

Thanks you guys it is working now

juliocgm83 avatar Nov 06 '17 12:11 juliocgm83

hi all I got issue $fa-font-path: '~font-awesome/fonts' is not found and font-awesome module is missing but i added it to package.json on azure build I got error but on local everithyng good how to refresh npm on azure?

bigWebApps avatar Nov 23 '17 17:11 bigWebApps

@bigWebApps what is the folder structure in Azure? Maybe the mom folder isn't updating.

isaacrlevin avatar Nov 23 '17 18:11 isaacrlevin