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

Add hot module reload support for any frontend lib #96

Closed
shalithasuranga opened this issue Jan 10, 2022 · 0 comments
Closed

Add hot module reload support for any frontend lib #96

shalithasuranga opened this issue Jan 10, 2022 · 0 comments
Assignees
Milestone

Comments

@shalithasuranga
Copy link
Member

Steps

  • Add a new option for neu run called --hot-reload-workaround
  • Find index.html and patch with localhost neutralino.js library.
  • Launch the app as usual
  • On process exit, revert the patch

Limitations (but this way is ok)

  • neu build is needed once before hot reload to copy the client lib
  • If the developer close the neu run process with a keyboard interrupt, the patch won't be reverted
@shalithasuranga shalithasuranga self-assigned this Jan 10, 2022
@shalithasuranga shalithasuranga added this to the Next milestone Jan 10, 2022
This was referenced Jan 16, 2022
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

1 participant