react-app-rewire-flex-plugindeprecated

Plugin for react-app-rewired to bundle Twilio Flex Plugins

Usage no npm install needed!

<script type="module">
  import reactAppRewireFlexPlugin from 'https://cdn.skypack.dev/react-app-rewire-flex-plugin';
</script>

README

npm npm NpmLicense

react-app-rewire-flex-plugin

Config overrides for react-app-rewired to build a Twilio Flex.

Installation

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

Usage

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.

Contributing

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

Contributors

Thank you to all the lovely contributors to this project. Please check the main repository to see all contributors.

License

MIT