lydell / elm-watch

`elm make` in watch mode. Fast and reliable.
https://lydell.github.io/elm-watch/
MIT License
153 stars 8 forks source link

Allow building a file with the hot-reload code inserted #69

Closed peacememories closed 12 months ago

peacememories commented 1 year ago

Hi, and thanks for the great work you're doing on elm-watch. We're using it happily in our Django application at work. There are a few features that would make life much easier for us, especially as we would like to integrate our build more directly into Django.

Together with #68, it would be very useful for us to be able to elm-watch make a js file, but still insert the hot-reload code. The way I would imagine this working is that we could, on a request to our website, generate the js file as a oneshot, which would have the hot-reload code attached so if a developer has elm-watch hot running, the hot-reload connects and they can develop efficiently.

lydell commented 12 months ago

See the discussion in https://github.com/lydell/elm-watch/issues/68