react-app-rewire-fast-refresh
v1.0.0
Published
Add react-refresh-webpack-plugin to a react-app-rewired config.
Downloads
49
Maintainers
Readme
react-app-rewire-fast-refresh
this project is reedited from react-app-rewire-hot-loader
Add the react-refresh-webpack-plugin
to your create-react-app
app via react-app-rewired
.
Because who wants their app, state, and styles automatically reloading all the time?
Installation
npm install --save react-app-rewire-fast-refresh
Usage
In the config-overrides.js
of the root of your project you created for react-app-rewired
add this code:
const rewireReactFastRefresh = require('react-app-rewire-fast-refresh')
/* config-overrides.js */
module.exports = function override (config, env) {
config = rewireReactFastRefresh(config, env)
return config
}
That's it, you now have hot reloads!
License
Licensed under the MIT License, Copyright ©️ 2021 Kent Wood. See LICENSE.md for more information.