Closed dlebedynskyi closed 7 years ago
interesting bug, thanks for pointing it out.
since, according the the environment.js
, setting NODE_ENV to 'development' is default, I assume, setting the only build
and build:server
scripts to include prod would be enough.
Would you agree or would that still cause inconsistencies for your use case?
enviroment.js
will set to default if not env var is not set in process. but if it is set - like after build
it stays production, correct?
thanks for pointing out the problems - i've updated the code to include the node_env=production. I've decided to leave off the env for dev to allow a bit more flexibility. hopefully this will be ok - if it proves to still be problematic in the future i'll have to rethink it!
issue come from master branch but very visible in webpack2-hrm branch
Steps to reproduce
npm run start:dev
npm run build:server
andnpm run start
.development
. _build
does sets NODEENV to production but it does so afterbuild:server
inprestart
Expected Manage node_env more consistent.
Suggestion