react-refresh-webpack-plugin
react-refresh-webpack-plugin copied to clipboard
How to inject new changes?
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.
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.