-
Notifications
You must be signed in to change notification settings - Fork 61
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
Question / Suggestion: Consider using elm-hot? #146
Comments
I have actually discussed with klazula doing just that, but haven't gotten around to it. If you are interested in taking a stab at it feel free! |
Ok, I have done some experimenting about hot swap and I was able to make it working in elm-live. Few caveats: The script injected by elm-live need to run in the browser BEFORE the elm compiled javascript. So I moved it before everything. I am afraid this is going to break the html so we probably need to be smarter here (adding it just after We need to extrapolate the relative path of the elm compiled javascript. For the moment I used one argument of Probably we need a configuration flag to toggle this feature (simple) The code for testing is available at https://github.com/lucamug/elm-live/tree/enhancements I will start using this version at work to see if it is reliable |
This should be available in the new alpha! You can check the README for how to install it. |
klazuka/elm-hot provides the low-level features for hot swapping elm code with model state preservation between reloads (only 0.19).
Would it make sense for this project to use it?
The text was updated successfully, but these errors were encountered: