Angular Lazy loaded routing is not working with Keycloak

Whenever I am building the angular app with production build, while it is working fine in development environment.
Can anyone please suggest if there is anything else required I need to add in configuration.
I am using Keycloak-angular and keycloak-js.