how to deploy angular2 app built using angular-cli

后端 未结 9 825
误落风尘
误落风尘 2021-01-30 07:05

I have created n new angular app using angular-cli.

I completed the app and preview it using ng-serve, it is working perfectly.

After that I used ng build --

9条回答
  •  生来不讨喜
    2021-01-30 07:39

    I am currently using Angular-CLI 1.0.0-beta.32.3

    in the root directory of your project run npm install http-server -g

    after successful installation run ng build --prod

    upon successful build run http-server ./dist

提交回复
热议问题