Config overrides for react-app-rewired
to build a Twilio Flex.
Make sure you have an existing project that was started with create-react-app
.
Alternatively, if you are starting new check out create-flex-plugin
.
npm install flex-plugin
npm install -D react-app-rewired react-app-rewire-flex-plugin
Update your package.json
to contain
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-app-rewired eject"
},
"config-overrides-path": "node_modules/react-app-rewire-flex-plugin"
Run npm start
or npm run build
.
Make sure to follow the instructions in the main repository to setup the project
# Install dependencies and link local packages with each other
cd packages/react-app-rewire-flex-plugin
npx lerna bootstrap
# Run tests
npm test
# To use your local package in a different project
npm link
# then in a different project
npm link react-app-rewire-flex-plugin
Thank you to all the lovely contributors to this project. Please check the main repository to see all contributors.
MIT