To load font-awesome using SCSS (SASS) in Webpack using relative paths with JavaScript, we set the $fa-font-path
variable.
For instance, we write
$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome"
to set the $fa-=font-path
variable before we use @import
to import font awesome.