gshigeto / ionic-environment-variables

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

Does not work with: ionic cordova run android --livereload #14

Closed devfelipereis closed 6 years ago

devfelipereis commented 6 years ago

Any way to make this work with ionic cordova run android --livereload?

I can get the dev configs but for production I can't. Any ideias?

Thank you!

windhandel commented 6 years ago

Maybe this? - https://stackoverflow.com/questions/46992418/dynamic-environment-variables-in-ionic-cannot-find-module

Robinyo commented 6 years ago

See:

LuisHCK commented 6 years ago

Using the README's config and adding this script is working for me :D package.json "android:dev": "APP_ENV=dev ionic cordova run android --emulator --livereload",

devfelipereis commented 6 years ago

I was busy and I could not try again... I'll run a new project and see what happens.. Thank you all.

gshigeto commented 6 years ago

If you still have a problem, feel free to open another issue! Thanks!