how to change the dist-folder path in angular-cli after 'ng build'

后端 未结 10 566
无人及你
无人及你 2020-12-07 11:27

I would like to use angular-cli with asp.net core and I need to know how I can change the path of the dist folder

10条回答
  •  鱼传尺愫
    2020-12-07 12:12

    Another option would be to set the webroot path to the angular cli dist folder. In your Program.cs when configuring the WebHostBuilder just say

    .UseWebRoot(Directory.GetCurrentDirectory() + "\\Frontend\\dist")
    

    or whatever the path to your dist dir is.

提交回复
热议问题