webpack5踩坑——cra框架升级webpack5之后hmr不生效

参考https://blog.csdn.net/lin_fightin/article/details/115421819

 

需要引入

yarn add @pmmmwh/react-refresh-webpack-plugin react-refresh --dev

 

 

 

 

 

posted @ 2021-12-23 14:54  tuna-  阅读(278)  评论(0编辑  收藏  举报