Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Run command doesn't take environment into account when building #187

Open
leonderijke opened this issue Nov 15, 2017 · 0 comments
Open

Run command doesn't take environment into account when building #187

leonderijke opened this issue Nov 15, 2017 · 0 comments

Comments

@leonderijke
Copy link
Collaborator

leonderijke commented Nov 15, 2017

The bin/maji run always builds with the production environment, no matter if I specify a different env via --env or the NODE_ENV environment variable.

I'm pretty sure that is because cordova-exec calls bin/maji build to build the assets, but without passing through the env.

I worked around this by changing the bin/maji build command to read the process.env.NODE_ENV as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant