gshigeto / ionic-environment-variables

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

Custom environment other than IONIC_ENV, is not recognized as an internal or external command #25

Closed mastakillahBlitzar closed 5 years ago

mastakillahBlitzar commented 6 years ago

when trying to change IONIC_ENV to BV_ENV, throws error BV_ENV is not recognized as an internal or external command

is there any other place where I have to declare this variable?

AndrWeisR commented 6 years ago

If you are on Windows, use a command like this in your package.json:

"build:DEV": "set BV_ENV=DEV&& ionic-app-scripts build"

Note there is no space between DEV and &&.

anacesponda commented 6 years ago

@AndrWeisR Thanks! It helped me