Angular 2 with CLI - build for production

后端 未结 9 1883
夕颜
夕颜 2021-02-01 16:18

I have freshly installed angular-cli 1.0.0.beta.17 (latest one), start new project, able to serve project on port 4200 with no problems - just standard \"app works!\" message.

9条回答
  •  太阳男子
    2021-02-01 17:09

    With the cli version (1.0.1) use :

    ng build --prod
    

    This will give you the dist folder with the index.html and all the bundled js file ready for production.

提交回复
热议问题