如果--prod特定的话,Ionic不会建立

时间:2018-06-13 20:22:33

标签: ionic-framework ionic3

我想构建我的应用程序的Web版本,并在添加浏览器平台后启动了Ionic build --prod命令。

我的输出:

> ionic build --prod
Running app-scripts build: --prod
[09:32:57]  build prod started ...
[09:32:57]  clean started ...
[09:32:57]  clean finished in 58 ms
[09:32:57]  copy started ...
[09:32:58]  deeplinks started ...
[09:32:58]  deeplinks finished in 164 ms
[09:32:58]  ngc started ...
[09:33:14]  ngc finished in 16.15 s
[09:33:14]  preprocess started ...
[09:33:14]  preprocess finished in 4 ms
[09:33:14]  webpack started ...
[09:33:14]  copy finished in 16.98 s

我让这个过程至少持续了一个小时,但它从未进展过。我没有收到任何错误消息,但它从未进展过。知道如何构建项目吗?

我正在使用Ionic CLI 3.20.0和Angular 5.2.10。

1 个答案:

答案 0 :(得分:0)

要运行或构建,您必须使用

ionic cordova run android --prod --release

ionic cordova build android --prod --release

请参阅文档https://ionicframework.com/docs/intro/deploying/