Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Fix issue 17 compatibility with metalsmith watch#23

Open
manticorps wants to merge 2 commits intophildotdev:masterfrom
manticorps:fix-issue-17-compatibility-with-metalsmith-watch
Open

Fix issue 17 compatibility with metalsmith watch#23
manticorps wants to merge 2 commits intophildotdev:masterfrom
manticorps:fix-issue-17-compatibility-with-metalsmith-watch

Conversation

@manticorps
Copy link

Hello,

The main problem is the watch (and other metalsmith auto-reload plugin) doesn't cleanup the metadata between run.

To avoid that, I just avoid to return an error in dev-mode. I am not entirely happy with this workaround, but this is working.

An another solution can be to keep in the metadata all the files already parsed, but this can be a problem on large project with tons of files.

p.s. this is my first contribution in github, if I have done some mistake like how to link with the issue be free to tell me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant