-
I'm developing a plugin that, essentially, do: from a file The problem is: if I edit It seems strange to me that changes are detected before the previous build is complete. Makes this any sense or is an implementation lack? As the maintainer of livereloading, could you provide some explanation about this behaviour @oprypin? Additionally, is possible to ignore certain files from being observed inside a observed directory? I suspect that #2529 could help, but determine Replicable example
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is indeed a problem if you do that. It's not a good approach, and I have criticized it before and mentioned an alternative:
https://github.com/oprypin/mkdocs-gen-files/blob/08d6e91924af3a67031f30d925de12e893c5804b/mkdocs_gen_files/plugin.py#L27-L29 To reiterate: don't programmatically write into You can check out the code linked above -- do that instead of this code (with a mostly untrue comment ;) And then the described issue about livereload becomes invalid. |
Beta Was this translation helpful? Give feedback.
It is indeed a problem if you do that. It's not a good approach, and I have criticized it before and mentioned an alternative: