How can I add a custom flag for an Ionic build?
My app uses GPS geolocations and for testing I would like to randomize the locations from a preset list so that I catch behavior around the world. For now I have a combination of bash & sed scripts that automatically edits my source file if I set a flag before I run my build script wrapper
build.sh . However, I would like this to be more elegant and somehow part of the ionic & capacitor build system.
I would like to run the ionic build with
--random and thus it would create a switch in the source to randomize a value.