I need to have different module for dev mode and prod mode so I think to use the angular.json
option of fileReplacements creating a test.module.ts
and test.module.prod.ts
.
Then I add the following to the angular.json
configuration:
{
"replace": "src/app/test/test.module.ts",
"with": "src/app/test/test.module.prod.ts"
}
But in this way I have the error the Component 'Test1Component' is declared by more than one NgModule.
and this for all component declared in TestModule
.
There is a workaround for this issue?