Open leonderijke opened 6 years ago
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.
bin/maji run
--env
NODE_ENV
I'm pretty sure that is because cordova-exec calls bin/maji build to build the assets, but without passing through the env.
cordova-exec
bin/maji build
I worked around this by changing the bin/maji build command to read the process.env.NODE_ENV as well.
process.env.NODE_ENV
The
bin/maji run
always builds with the production environment, no matter if I specify a different env via--env
or theNODE_ENV
environment variable.I'm pretty sure that is because
cordova-exec
callsbin/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 theprocess.env.NODE_ENV
as well.