We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NODE_*
1 parent 792c9ff commit e5c044aCopy full SHA for e5c044a
bin/compile
@@ -39,9 +39,12 @@ else
39
echo '{ "root": "build/" }' > static.json
40
fi
41
42
-# Support custom `REACT_APP_*` env vars during build.
43
-# https://github.com/facebookincubator/create-react-app/blob/v0.2.3/template/README.md#adding-custom-environment-variables
44
-export_env_dir "$ENV_DIR" '^REACT_APP_'
+# Support env vars during build:
+# * `REACT_APP_*`
+# * https://github.com/facebookincubator/create-react-app/blob/v0.2.3/template/README.md#adding-custom-environment-variables
45
+# * `NODE_*`, especially for `NODE_PATH`
46
+# * https://github.com/facebookincubator/create-react-app/pull/476
47
+export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_)'
48
49
# Build the javascript bundle
50
npm run build
0 commit comments