react-app-rewire-hot-loader-for-customize-cra
v1.0.1
Published
Tiny wrapper of react-app-rewire-hot-loader
Downloads
398
Maintainers
Readme
react-app-rewire-hot-loader-for-customize-cra
This project is a tiny wrapper of react-app-rewire-hot-loader, which aims to format it as a plugin of customize-cra.
Installation
yarn add -D
react-app-rewire-hot-loader-for-customize-cra
# If you don't already, you also need:
yarn add -D react-app-rewired
yarn add -D react-hot-loader
yarn add -D customize-cra
Usage
- In the
config-overrides.js
of the root of your project you created forreact-app-rewired
add this code:
const rewireReactHotLoader = require('react-app-rewire-hot-loader-for-customize-cra')
const { override } = require('customize-cra')
/* config-overrides.js */
module.exports = override(
rewireReactHotLoader()
)
- Follow the rest guides: https://github.com/cdharris/react-app-rewire-hot-loader/blob/master/README.md#usage