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. Copy all code and paste it another folder, create folder name: myAngulerProject
Question and answer is powered by AnsPress.io