Created
May 28, 2020 18:57
-
-
Save RichardLindhout/2f2e01995848d10de93d633195d10cd9 to your computer and use it in GitHub Desktop.
Add React Fast Refresh to create-react-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* config-overrides.js */ | |
const { override } = require('customize-cra') | |
const { addReactRefresh } = require('customize-cra-react-refresh') | |
module.exports = override(addReactRefresh()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replace react-scripts with react-app-rewired |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add customize-cra customize-cra-react-refresh --dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also add
yarn add react-app-rewired ---dev