.NET Core changing the location where my default index.html file is

后端 未结 2 418
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 07:51

I am building an Angular 2 app and using .NET Core and Webpack to compile my static resources into a dist folder. I am using a plugin that builds my index.html file and put

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-03 08:38

    You are able to change the directory for the static files, by passing StaticFileOptions to the UseStaticFiles method:
    https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files

提交回复
热议问题