From 659034c2c2c12509c5113f9b577c719373809cac Mon Sep 17 00:00:00 2001 From: doanguyen Date: Mon, 19 Aug 2019 19:53:26 +0200 Subject: [PATCH] [core] feat: support create-react-app environment variable (#3691) Allows create-react-app users to set a custom blueprint namespace more easily. --- packages/core/src/common/classes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/common/classes.ts b/packages/core/src/common/classes.ts index aacbeaa6a9..14740fab0a 100644 --- a/packages/core/src/common/classes.ts +++ b/packages/core/src/common/classes.ts @@ -19,7 +19,7 @@ import { Elevation } from "./elevation"; import { Intent } from "./intent"; import { Position } from "./position"; -const NS = process.env.BLUEPRINT_NAMESPACE || "bp3"; +const NS = process.env.BLUEPRINT_NAMESPACE || process.env.REACT_APP_BLUEPRINT_NAMESPACE || "bp3"; // modifiers export const ACTIVE = `${NS}-active`;