Angular CLI 常用命令
2020-07-15 本文已影响0人
乌鲁木齐001号程序员
ng -version
创建项目
-
ng new demo01 --skip-install
不要在这里下载依赖包,慢; cd demo01/
-
cnpm install
把依赖包下载下来; -
ng serve
启动项目;
Build 项目
ng build --base-href ./
ng -version
ng new demo01 --skip-install
不要在这里下载依赖包,慢;cd demo01/
cnpm install
把依赖包下载下来;ng serve
启动项目;ng build --base-href ./