title: Angular 10 FileReplacements not working for Assets
body: <p>We are currently upgrading out project from Angular 8 to 10, and we are running into some trouble with the file replacements during build. We have 2 different stylings with different texts which used to be selected by doing FileReplacements in the configs.
  They look something like this:</p>
  <pre><code>&quot;fileReplacements&quot;: [
    {
      &quot;replace&quot;: &quot;src/index.html&quot;,
      &quot;with&quot;: &quot;src/index.xy.html&quot;
    }
    {
      &quot;replace&quot;: &quot;src/assets/text/de.json&quot;,
      &quot;with&quot;: &quot;src/assets/text/de.xy.json&quot;
    }
  ]
  </code></pre>
  <p><strong>The strange thing is, that for the html files the replace seems to work, however for the assets it does not.</strong> We would love to get this to work, and also generally understand why it used to work and now does not.</p>
  <p>Here are the versions from our package.json:</p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@angular/common&quot;: &quot;10.2.3&quot;,
      &quot;@angular/compiler&quot;: &quot;10.2.3&quot;,
      &quot;@angular/core&quot;: &quot;10.2.3&quot;,
      &quot;@angular/forms&quot;: &quot;10.2.3&quot;,
      &quot;@angular/platform-browser&quot;: &quot;10.2.3&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;10.2.3&quot;,
      &quot;@angular/router&quot;: &quot;10.2.3&quot;,
      ...
  }
  &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1002.0&quot;,
      &quot;@angular-devkit/build-ng-packagr&quot;: &quot;~0.1002.0&quot;,
      &quot;@angular-devkit/core&quot;: &quot;~10.2.0&quot;,
      &quot;@angular/cli&quot;: &quot;^10.2.0&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;^10.2.3&quot;,
      ...
  }
  </code></pre>