ionic-environment-variables icon indicating copy to clipboard operation
ionic-environment-variables copied to clipboard

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

Open ildarnm opened this issue 7 years ago • 3 comments

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

I need to build with AOT in the dev environment.

ildarnm avatar May 10 '18 18:05 ildarnm

@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.

writer0713 avatar May 14 '18 07:05 writer0713

@writer0713, not yet.

ildarnm avatar May 14 '18 08:05 ildarnm

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

writer0713 avatar May 15 '18 07:05 writer0713