I am using the NET.Core 2.0 Angular template, which works with the webpack component, angular-cli, Angular, typescript.
I did:
command line - install the package and bootloader
npm install --save font-awesome npm install url-loader --save-dev
webpack.config.js - add a loader rule
module: { rules: [ ... { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader" }, { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader" } ] },
my.component.css - import into my component
@import '~font-awesome/css/font-awesome.css';
my.component.html . Place icon
<i class="fa fa-check fa-6"></i>
Now I have not received the error message, but still can not see the icon.
Did I do something wrong?
source share