From 6ad057d28cf432ff0c67d3fcf9fc9a51aa5c43a5 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 3 Feb 2021 15:26:24 +0100 Subject: [PATCH] docs: clarify that fileReplacements only supports compilation source files (#40687) fileReplacements is intended to only work on compilation source files PR Close #40687 --- aio/content/guide/build.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/guide/build.md b/aio/content/guide/build.md index 91c8e2c8e8..a98cb22a87 100644 --- a/aio/content/guide/build.md +++ b/aio/content/guide/build.md @@ -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.