-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Watch mode doesn't watch all files #289
Comments
Currently Marp CLI is observing the change only for Markdown file and theme CSS file because watching image resources using in Markdown requires extra parse step. I think it's hard to implement, but also must have a worth. |
Thanks for the quick response. I see you're already using chokidar. One should be able to watch all files in the user-provided directory with this. In the simplest case, one could reload the build/preview every time any file in that directory changes. In the more sophisticated case, one could determine which files are referenced by |
Yes. Probably we will take the simplest one at the first: should observe all files in specified directory by In server mode, we are internally being inherited the passed directory to The fact we should consider is that the current watch mode can work in both of regular file conversion and server mode. When observer is working in regular conversion mode and the converted file was created into observed directory, we must avoid infinite loop. |
this would be a really helpful feature |
It seems only changes to
*.md
files will be watched. For example, changes to images will not be watched.Steps to reproduce
index.md
that referencesimage.png
on a slide.marp -psw .
index.md
-> Preview updates ☑️image.png
-> Preview does not update ❎The text was updated successfully, but these errors were encountered: