Skip to content

Instantly share code, notes, and snippets.

@RichardLindhout
Created May 28, 2020 18:57
Show Gist options
  • Save RichardLindhout/2f2e01995848d10de93d633195d10cd9 to your computer and use it in GitHub Desktop.
Save RichardLindhout/2f2e01995848d10de93d633195d10cd9 to your computer and use it in GitHub Desktop.
Add React Fast Refresh to create-react-app
/* config-overrides.js */
const { override } = require('customize-cra')
const { addReactRefresh } = require('customize-cra-react-refresh')
module.exports = override(addReactRefresh())
replace react-scripts with react-app-rewired
yarn add customize-cra customize-cra-react-refresh --dev
@RichardLindhout
Copy link
Author

Also add yarn add react-app-rewired ---dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment