Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add font awesome to ASP.NET Core Angular 2 application in Visual Studio 2017 with SpaTemplates

I am using the Single Page Application Template in Visual Studio 2017 in order to create an Angular 2 application.

dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

And then created the application like this:

dotnet new angular

What is the reccommended way of importing third Party libraries like font awesome into the Angular 2 application?

like image 628
Alexander Avatar asked Jan 05 '23 00:01

Alexander


1 Answers

I was looking for the exact same thing.

Finally found the answer here: http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/

Don't forget to do:

webpack --config webpack.config.vendor.js

as mentioned and also make sure you also restart the ASP.NET Core pipeline upon doing so.

Regards

like image 111
Serge Caron Avatar answered Jan 13 '23 14:01

Serge Caron