- add the react-refresh plugin
- add a custom webpack config for each app you want to use fast refresh with
- add an env var for development
- configure hmr in plugins and devServer
- replace the default babel-loader with a custom babel-loader that supports fast-refresh
- add the fast refresh plugin to the plugins array
sanderdrummer / nx-react-fast-refresh-example Goto Github PK
View Code? Open in Web Editor NEWHow to setup react fast refresh with nrwl nx