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

watch files for changes #72

@andrewharvey

Description

@andrewharvey

mbview could watch for changes the source mbtiles and reload the server and refresh the client when changes occur.

 var watcher = chokidar.watch(file, {
   persistent: false,
   usePolling: true, 
   awaitWriteFinish: true
 });
 
 watcher.on('change', function(path) {
   console.log(path + ' changed');
 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions