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!

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
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: