如何构建Angular 2 Universal以进行生产

我如何构建一个用于生产的Angular2 Universal项目?

我已经安装了以下初学者应用程序:https://github.com/angular/universal(2.x版本不是4.x)

我在cmd中运行以下命令:

* `npm run build:prod:ngc` to compile the ngfactory files and build prod

但它没有创建dist文件夹,我认为建筑/编译也已停止。

sh-3.2# npm run build:prod:ngc

> universal-starter@2.0.0 build:prod:ngc /PATH/omapp
> npm run clean:ngc && npm run ngc && npm run clean:dist && npm run build:prod

> universal-starter@2.0.0 clean:ngc /PATH/omapp
> rimraf **/*.ngfactory.ts **/*.css.shim.ts

> universal-starter@2.0.0 ngc /PATH/omapp
> ngc -p tsconfig.aot.json

> universal-starter@2.0.0 clean:dist /PATH/omapp
> rimraf dist

> universal-starter@2.0.0 build:prod /PATH/omapp
**> webpack --config webpack.prod.config.ts => STOPPED  HERE** (stay at this point after 5+ minutes)
链接地址: http://www.djcxy.com/p/31347.html

上一篇: How to build Angular 2 Universal for production

下一篇: cli build for production and upload on shared server