How to run the Dist Folder on Local Machine in Angular 6+?

前端 未结 6 1439
无人共我
无人共我 2020-12-07 16:47

I am building the application in Angular6+, now I have run the command ng build --prod which gave me a dist folder. Now how to check or serve that

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-07 17:11

    Since Angular 7 you can just do ng serve --prod=true. Documentation: https://angular.io/cli/serve

    I know the question asks about Angular 6 but Google got me here, so just for future reference.

提交回复
热议问题