Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

🐛 Fix environemnt specific build configuration #37

Merged
merged 3 commits into from
Mar 20, 2021
Merged
Changes from 1 commit
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
9 changes: 5 additions & 4 deletions packages/cra-template/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
},
"scripts": {
"start": "yarn localize && react-scripts start",
"build": "yarn build:dev",
"build:development": "react-scripts build --target=development",
"build:stage": "react-scripts build --target=stage",
"build:master": "react-scripts build --target=production",
"build": "yarn build:development",
"build:development": "export REACT_APP_BUILD_ENV=development && react-scripts build --target=production",
"build:stage": "export REACT_APP_BUILD_ENV=stage && react-scripts build --target=production",
"build:production": "export REACT_APP_BUILD_ENV=production && react-scripts build --target=production",
"build:master": "yarn build:production",
"test:watch": "react-scripts test",
"cypress:open": "cypress open",
"eject": "react-scripts eject",
Expand Down