I want to rename the index.html on dist folder, how i can do that with angular cli on ng build --prod command.
Let me explain why I want to do that, it's for integrate my html page on index.php page, if I don't do that the server reply index.html before index.php and I can't configure the server for launch index.php first.
Thanks for the reply.
Rename the file index.html to index123.html in the src dir of your project
In the file angular-cli.json modify the index property to look like this:
"index": "index123.html"
The ng build command will copy the file index123.html into the dist dir.