-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Allow custom chokidar watcher configuration #4055
Comments
What is the motivation for ignoring some files? What's the problem with dotfiles and globbing? What's your API suggestion? Should this be a site global API or something plugin-specific? How do we add this setting without a breaking change? I'd rather go with a global option, maybe just add a "chokidarConfig" to the docusaurus config, but not sure how convenient it would be for your usecase. |
Supporting a monorepo with multiple docs plugins. Below is an example of my setup:
There are 3 docs plugins in use here. One for the monorepo root package, and two others for other packages. For the monorepo root docs plugin I set the The great thing about this setup is that when I am developing anything in the monorepo, I run a single command to view all my documentation whether it be public or internal, and it will update in real-time. I think its a really cool use case. When developers are using third-party libraries we usually refer to rendered docs - so why should it be any different when we are developing locally. And it also makes it easy to update internal docs.
If I store my main docusaurus package in So
If you add an ignore such as
Which doesn't work. For my use case I'd actually like to have full control over
A global option would be great. |
Hi, for now you can |
🚀 Feature
I want to be able to ignore docs from a
plugin-content-docs
plugin. Currently there isinclude
option, but I would also like to be abled to modify chokidar'signored
setting. I would also like this to work with dot files which sometimes have difficulty with globbing.A good task to knock off at the same time as: #4050
I would like to be able to use the function form, e.g:
The text was updated successfully, but these errors were encountered: