Skip to content

Commit

Permalink
Support npm private modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mars committed Mar 26, 2018
1 parent 1db3314 commit 0e128f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ cp "$BP_DIR/.profile.d/inject_react_app_env.sh" "$profile_d_dir/"
# * https://github.com/facebookincubator/create-react-app/blob/v0.2.3/template/README.md#adding-custom-environment-variables
# * `NODE_*`, especially for `NODE_PATH`
# * https://github.com/facebookincubator/create-react-app/pull/476
export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_)'
# * `NPM_*`, especially for `NPM_TOKEN`
# * https://docs.npmjs.com/private-modules/ci-server-config
export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_|NPM_)'

# Build the javascript bundle
npm run build

0 comments on commit 0e128f4

Please sign in to comment.