If you want to setup the website URL like this https://example.com/aaa/bbb, you will get the resources not found problem. For this reason, we need to add base url prefix in Angular project.
Solution
package.json
// Add this --deploy-url /aaa/bbb/
// Add this --base-href /aaa/bbb/
... skip
ng build --optimization --build-optimizer --configuration production --deploy-url /aaa/bbb/ --base-href /aaa/bbb/
... skip
In your web service(IIS, NGINX, APACHE...etc) server, don't forget opened RW module.
Reference