react-app-rewire-fast-refresh

1.0.0 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-app-rewire-fast-refresh

      Weekly Downloads

      12

      Version

      1.0.0

      License

      MIT

      Unpacked Size

      4.52 kB

      Total Files

      5

      Last publish

      Collaborators

      • minzojian