如何使用SpaTemplates在Visual Studio 2017中为ASP.NET Core Angular 2应用程序添加字体真棒

Ale*_*der 3 font-awesome asp.net-core visual-studio-2017 angular

我在Visual Studio 2017中使用单页应用程序模板来创建Angular 2应用程序.

dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
Run Code Online (Sandbox Code Playgroud)

然后创建这样的应用程序:

dotnet new angular
Run Code Online (Sandbox Code Playgroud)

将第三方库(如字体真棒)导入Angular 2应用程序的推荐方法是什么?

Ser*_*ron 5

我正在寻找完全相同的东西.

终于找到了答案:http: //blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/

别忘了做:

webpack --config webpack.config.vendor.js

如上所述,还要确保在执行此操作时也重新启动ASP.NET Core管道.

问候