How to fileReplacements for angular library?

64 views Asked by At

My goal is to replace environment.ts with environment.prod.ts of an Angular library.

The problem is a Angular library do not have fileReplacements key in the angular.json file. I need to replace environment.ts with environment.prod.ts when I do npx ng build app1.

Reference:

  1. Angular Workspace
  2. Angular application as a library
0

There are 0 answers