Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to inject new changes? #752

Open
ko22009 opened this issue Jun 6, 2023 · 1 comment
Open

How to inject new changes? #752

ko22009 opened this issue Jun 6, 2023 · 1 comment

Comments

@ko22009
Copy link

ko22009 commented Jun 6, 2023

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.

@pmmmwh
Copy link
Owner

pmmmwh commented Aug 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants