Skip to content

Builder gets into infinite refresh loop when saved.md files are updated #68

@chrispcampbell

Description

@chrispcampbell

The file watcher is set up to ignore changes to the "saved" translation files:

  const watcher = chokidar.watch(filesToWatch, {
    ignoreInitial: true,
    ignored: [/en\/docs\.po/, /saved\.json/, /timestamp/, /public/],

However, when I switched the file format from json to md, I forgot to update this code, so when the saved.md files are updated by the builder, it causes an infinite refresh loop.

The fix is to change that line to ignore saved.md instead of saved.json.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions