I have developed an Angular application and released on Sandbox machine. Now I want to release it on Enterprise virtual machine.
I want to generate production build for Enterprise VM. Right now my dist size is 174 MB, I am assuming it reduce in prod build, am I correct? I am thinking I need to run first ng build --prod and then ng serve --prod and take the dist out.
In my project there is environment folder with two file environment.ts and environment.prod.ts, what should I do with these two.
If I try ng build --prod getting errors here
'router-outlet' is not a known element while executing ng build --prod
How should I generate production build?