0

I have installed font awesome with npm like this:

npm install @fortawesome/fontawesome-free

I have added this in my scss file:

$fa-font-path: '~@fortawesome/fontawesome-free/webfonts';
@import "~@fortawesome/fontawesome-free/scss/fontawesome";

This is how I am trying to set an icon:

i:before {
    content: "\f303";
    font-weight: 900;
    font-family: $fa-font-path;
}

But I am seeing just a rectangle instead of the actual icon.

RobC
  • 20,007
  • 20
  • 62
  • 73
michael
  • 391
  • 3
  • 15

0 Answers0