简体   繁体   中英

ng build: How to set the number of retries for ES5 bundles

My dev-build always retries 3 times. I'd like it to fail immediately (no retries).

In angular-issue #16520 an error message shows that it fails after the 1st retry:

Generating ES5 bundles for differential loading... An unhandled
exception occurred: cancel after 1 retries !

How can we set the max number of retries for ES5 bundle generation?

I do not think you should change the retries count. I resolved this issue by downgrading the @angular-devkit/build-angular to 0.801.2

npm install @angular-devkit/build-angular@0.801.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM