docs: clarify that fileReplacements only supports compilation source files (#40687)

fileReplacements is intended to only work on compilation source files

PR Close #40687
This commit is contained in:
Alan Agius 2021-02-03 15:26:24 +01:00 committed by Misko Hevery
parent 74815de64a
commit 6ad057d28c
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class AppComponent {
## Configure target-specific file replacements
The main CLI configuration file, `angular.json`, contains a `fileReplacements` section in the configuration for each build target, which allows you to replace any file with a target-specific version of that file.
The main CLI configuration file, `angular.json`, contains a `fileReplacements` section in the configuration for each build target, which allows you to replace any file in the TypeScript program with a target-specific version of that file.
This is useful for including target-specific code or variables in a build that targets a specific environment, such as production or staging.
By default no files are replaced.