When doing ionic build --prod
, the file environment.ts
(after being replaced by environment.prod.ts
) gets minimized, uglified and bundled.
Is there a way to prevent this, so that environment.ts
remains a separate, non-uglified file in the browser bundle?
(I still want the rest of the code to be optimized for production of course)
Rationale: I’d like to distribute the pre-built bundle to different server admins for installation on their servers, and they need to make local adjustments to environment.ts
. I want to spare them the effort to do a local build only because they need to adjust one value in environment.ts
.