The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)

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!


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)." Stefan Judis | Sciencx - Tuesday January 1, 2019, https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
HARVARD
Stefan Judis | Sciencx Tuesday January 1, 2019 » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)., viewed ,<https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/>
VANCOUVER
Stefan Judis | Sciencx - » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
CHICAGO
" » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/
IEEE
" » The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2019/01/01/the-npm_config_production-flag-sets-the-nove_env-variable-to-production-in-npm-scripts-tilpost/. [Accessed: ]
rf:citation
» The NPM_CONFIG_PRODUCTION flag sets the NOVE_ENV variable to production in npm scripts (#tilPost) | Stefan Judis | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.