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:
"fileReplacements": [
{
"replace": "src/index.html",
"with": "src/index.xy.html"
}
{
"replace": "src/assets/text/de.json",
"with": "src/assets/text/de.xy.json"
}
]
The strange thing is, that for the html files the replace seems to work, however for the assets it does not. We would love to get this to work, and also generally understand why it used to work and now does not.
Here are the versions from our package.json:
"dependencies": {
"@angular/common": "10.2.3",
"@angular/compiler": "10.2.3",
"@angular/core": "10.2.3",
"@angular/forms": "10.2.3",
"@angular/platform-browser": "10.2.3",
"@angular/platform-browser-dynamic": "10.2.3",
"@angular/router": "10.2.3",
...
}
"devDependencies": {
"@angular-devkit/build-angular": "~0.1002.0",
"@angular-devkit/build-ng-packagr": "~0.1002.0",
"@angular-devkit/core": "~10.2.0",
"@angular/cli": "^10.2.0",
"@angular/compiler-cli": "^10.2.3",
...
}