Open trakhimenok opened 7 years ago
Can you add --verbose
to that command and run it again?
Can you try npm run ionic:build --prod --verbose
- does this also take as long?
What is your ionic info
output?
We're experiencing a similar behavior,
ionic cordova build browser --prod --release --no-interactive
takes more than twice as long as npm run ionic:build --prod --verbose
. The build hangs for about 3 minutes at Cleaning Browser project
, running with verbose provides no additional output at the offending location.
Do you really need to use ionic cordova build browser
at all?
ionic build
also builds a web version, but without the Cordova browser platform. It should be much faster.
It appears I don't need to :man_facepalming:. That solves the problem for me, thanks!
The command is new since Ionic CLI 3.7 - so no wonder it is not as known yet ;)
We have the same issue but Cordova is required. The Cleaning Browser project section is taking 10 to 15 minutes.
The "Cleaning Browser project" is not directly part of Ionic but probably done by Cordova CLI. Best location to report this would be http://issues.cordova.io/ then. (Note that your issue there has higher chance of being handled if it doesn't include Ionic and can also be reproduced with a plain Cordova app - maybe try to reproduce it with a new Cordova project and cordova build ...
first.)
Short description of the problem:
When running
$ ionic cordova build browser --prod
the build seems to be succesfull but cleaning step is hanging forever. Node process consumes 99% CPU.May be related to https://github.com/ionic-team/ionic-app-scripts/issues/1064
What behavior are you expecting?
The cleanup stage should finish in reasonable time (less than a minute?)
Steps to reproduce:
Which @ionic/app-scripts version are you using? @ionic/app-scripts: 1.3.11 See more details about my environment at https://github.com/ionic-team/ionic-app-scripts/issues/1064
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)