我在Visual Studio 2017中使用单页应用程序模板来创建Angular 2应用程序。
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
然后创建这样的应用程序:
dotnet new angular
将第三方库(如字体awesome)导入Angular 2应用程序的推荐方法是什么?
在使用dotnet new angular创建SPA项目之后,这适用于.NET Core 2:
我正在寻找完全相同的东西。
终于找到了答案:http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/
别忘了做:
webpack --config webpack.config.vendor.js
如上所述,还要确保在执行此操作时也重新启动ASP.NET Core管道。
问候