This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Today I learned that when you set NPM_CONFIG_PRODUCTION=true
and use npm scripts, NODE_ENV
will be production
, too.
Thanks @bahmutov for sharing why this could lead to confusion!
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Stefan Judis | Sciencx (2019-01-01T23:00:00+00:00) The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost). Retrieved from https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.