I know that it can be implemented by configuring angular.json
.
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
But can it be implemented through command line parameters? I have two local development environments. They are just different in environment variables.
There is actually no env-file
parameter.
ng serve --env-file src/environments/environment.mock.ts