Yes you can create a custom index.html (e.g. index.prod.html) for each environment:
Create in your src folder another copy of index.html (index.prod.html) include any custom links you need in that index for that environment and inside angular.json add the following (the fileReplacement part):
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": false,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
},
{
"replace": "src/index.html",
"with": "src/index.prod.html"
}
]
},
Please note this options is fixed and working on Angular 6.1 before that you couldn't use the fileReplacements for index files.