Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

feat(webpack): support debug package & associated env #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/react-scripts/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down