gridsome-plugin-flexsearch
gridsome-plugin-flexsearch copied to clipboard
Causes UnhandledPromiseRejectionWarning in @gridsome\source-filesystem
When flexsearch is enabled, it is not possible to edit markdown files and at the same time to see the content being hot-reloaded in the browser.
See this issue: https://github.com/gridsome/gridsome/issues/1223
Any progress on this? Still cant manage to hot reaload content when i edit md files.
Here is a dirty workaround which disables flexsearch in dev mode:
{
use: "gridsome-plugin-flexsearch",
options: {
searchFields: ["title", "subtitle", "excerpt", "tags", "content"],
collections: process.env.NODE_ENV === "development" ? [] : collections,
// ...
}
};
Thanks for workaround @vsimko , like you mentioned its not happy solution since then you cant do flex search but in my case markdown is changed more often, so at least we can toggle it now.