pik-gane / vodle

We develop an interactive, consensus-oriented group decision app
https://twitter.com/vodle_it
GNU Affero General Public License v3.0
24 stars 14 forks source link

Keep environment.ts a separate file when bundling for browser #227

Open mensch72 opened 1 year ago

mensch72 commented 1 year ago

When doing ionic build --prod, the file environment.ts (after being replaced by environment.prod.ts) gets minimized, uglified and bundled.

We should prevent this (if possible), so that environment.ts remains a separate, non-uglified file in the browser bundle.

(We still want the rest of the code to be optimized for production of course)

Rationale: We’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.

Related Ionic forum question: https://forum.ionicframework.com/t/keep-environment-ts-a-separate-file-in-bundling-for-browser/228731