From 058ffe42d2e1786aa74236ae63100187a9d9988d Mon Sep 17 00:00:00 2001 From: Christopher Dieringer Date: Sun, 29 Apr 2018 12:37:09 -0700 Subject: [PATCH] feat(webpack): support debug package & associated env --- packages/react-scripts/config/env.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/config/env.js b/packages/react-scripts/config/env.js index 7793fadf0..b8aa063e1 100644 --- a/packages/react-scripts/config/env.js +++ b/packages/react-scripts/config/env.js @@ -77,6 +77,8 @@ function getClientEnvironment(publicUrl) { return env; }, { + // support the popular DEBUG package: https://www.npmjs.com/package/debug + DEBUG: process.env.DEBUG || '', // Useful for determining whether we’re running in production mode. // Most importantly, it switches React into the correct mode. NODE_ENV: process.env.NODE_ENV || 'development',