Hi,
I have two different situations when i create a build using --prod parameter. I will be using that for both staging and for actual production builds. I would like to pass a custom parameter, for instance --staging . Based in this, i want my app to use different pieces of code.
Is there any way i can make my own parameters, like for instance --staging?
Thanks in advance.
If Ionic 4 is an option, this gets vastly easier. If you look at the configurations
section of angular.json
, it should be clear how to add your own configurations that replace files as --prod
does.
1 Like
We will eventually upgrade to Ionic 4, but that will not be done yet, and we would need this functionality before we get the chance to upgrade from Ionic 3.
In that case all I can suggest is looking at using the scripts
section of package.json
to do your customization work.