react-refresh-webpack-plugin icon indicating copy to clipboard operation
react-refresh-webpack-plugin copied to clipboard

How to inject new changes?

Open ko22009 opened this issue 2 years ago • 1 comments

I create custom plugin which emmit new asset to dist folder. And in my app I load this file by axios.

Can I apply changes to my app? When I import directly json file, hot reload works, but dynamic in dist folder, doesn't work, but with liveReload is working.

ko22009 avatar Jun 06 '23 20:06 ko22009

Hi, you cannot inject new changes. If you update something outside of the compilation cycle, it is impossible to respond. liveReload works by refreshing the whole page and because it destroys the context there's never stale assets.

pmmmwh avatar Aug 09 '23 14:08 pmmmwh