Angularjs2项目打包发布以及部署在Linux上

cd xx-project

npm install //更新依赖

ng build –prod –aot //最小化打包

把生成的dist目录拷贝到虚拟根目录即可