gshigeto / ionic-environment-variables

Easy to use environment variables for Ionic3!
MIT License
276 stars 36 forks source link

When I build with params MY_ENV=dev and --prod, ionic builds with the prod environment. #29

Open ildarnm opened 6 years ago

ildarnm commented 6 years ago

Command MY_ENV=dev ionic cordova run android --device --prod

I need to build with AOT in the dev environment.

writer0713 commented 6 years ago

@ildarnm have you found solution? I'm facing same issue. without --prod option, custom env works fine. if I add --prod option, it just works as prod mode.

ildarnm commented 6 years ago

@writer0713, not yet.

writer0713 commented 6 years ago

@ildarnm I've made a solution. You can see my repo.