It copies environment files for your Angular project. 🚀
Copied file from projects/your-project-name/src/environments/environment.sample.ts into
projects/your-project-name/src/environments/environment.ts. ✅
{
...,
"projects": {
"your-project-name": {
...,
"architect": {
...,
"copy-environment": {
"builder": "ngx-devkit-builders:copy-environment",
"options": {
"source": "environment.sample.ts",
"target": "environment.ts",
"overwrite": false,
"verbose": false
}
}
}
}
}
}ng run your-project-name:copy-environment| Option | Type | Default | Description |
|---|---|---|---|
source |
string |
- | Source environment file name |
target |
string |
- | Target environment file name |
overwrite |
boolean |
false |
Whether to overwrite existing target file |
verbose |
boolean |
false |
Show detailed output |