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
  • 22,977
  • 20
  • 73
  • 80
michael
  • 421
  • 6
  • 21

0 Answers0