'Angular 9 - is it possible to prerender routes without complete build?

I'm using Angular 9's built in npm run prerender --routesFile=routes.txt Every time, I run this, it first runs complete Angular build for both server and browser.

Is there a better way to simply run the prerendering steps and avoid repeated builds which takes a lot of time?

I understand that Angular internally uses webpack, but I can't find any documentations on this.

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source