It creates simplified robots.txt.
Copied file from projects/your-project-name/src/environments/environment.sample.ts
into
projects/your-project-name/src/environments/environment.ts
.
- Go to angular.json
{
...,
"projects": {
"your-project-name": { // project will be different
...,
"architect": {
...,
"copy-environment": { // name can be different if you want
"builder": "ngx-devkit-builders:copy-environment",
"options": {
"source": "environment.sample.ts",
"target": "environment.ts",
"overwrite": false, // or true
"verbose": false // or true
}
}
}
}
}
- Run command
ng run your-project-name:copy-environment