Skip to content

Instantly share code, notes, and snippets.

@kunokdev
Last active August 24, 2020 14:38
Show Gist options
  • Save kunokdev/e86bddaba2da7c0ee275e8577ce920fd to your computer and use it in GitHub Desktop.
Save kunokdev/e86bddaba2da7c0ee275e8577ce920fd to your computer and use it in GitHub Desktop.
Run bash script before starting dev mode
"scripts": {
"dev": "chmod +x ./env.sh && ./env.sh && mv env-config.js ./public/env-config.js && react-scripts start",
"test": "react-scripts test",
"eject": "react-scripts eject",
"build": "sh -ac '. ./.env; react-scripts build'"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment