totaljs / framework4

Total.js framework v4
https://www.totaljs.com
Other
99 stars 36 forks source link

livereload and typescript #27

Closed dispbd closed 2 years ago

dispbd commented 2 years ago

Hello. We are using typescript when working with Total.js. Everything is configured as in the example, and it works fine, except for one thing - in debug mode and options.livereload = true in the startup file, when the project changes, the server does not reboot (as a result, the client too). If options.livereload = false, then restarting the server works, but this is not very convenient, since I would like the client to restart automatically as well. I repeat that this is precisely with typescript, when splicing through regular js, there is no such problem. I suspect there are two reasons - either livereload does not take into account .ts files in the function where it is checked, or the typescript does not compile this function correctly.

Any ideas how to fix it?

petersirka commented 2 years ago

Hi @dispbd, I have fixed the live reload. Can you test it? Because personally, I don't use TypeScript.

Please let me know if it will work.

dispbd commented 2 years ago

Everything works fine. As always, thanks for the promptness!