Follow to Build production-
1. Shift + right click on the folder
2. Copy this example code and paste it in your CMD
ng build --prod --output-path docs --base-href /project_name/
Note: project name will be like your project folder name
If you enter in URL: localhost/myAngulerProject
Then your build code will be
ng build --prod --output-path docs --base-href /myAngulerProject/
When the build is complete then you will see the docs folder in your project folder.
Hope it will be helpful for you.
Question and answer is powered by AnsPress.io