python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

hot reload after ".html .js .vue etc" modified #526

Closed scucat closed 3 years ago

scucat commented 3 years ago

Is your feature request related to a problem? Please describe. now, my steps in run "python html" app:

problem: each time I modified the html file, I need to rerun step1 and step2, in which step1 cost a lot of time.

Describe the solution you'd like the solution I want:

if there is a way that py_side use localhost:8000, js_side use localhost:8001, and they connect through websocket ?. In ths condition, when I modified html file, we do not need to run step1, which save a lot of time! (step1 cost a lot of time!)

thanks!

scucat commented 3 years ago

image

I tried this, it works!

scucat commented 3 years ago

// These get dynamically added by library when file is served _py_functions: ['say_hello_py'],

this need eel.js to be updated, which may cause hot-reload impossible...