Skip to content

Feature Request: Expose a file-change callback / hook #440

@madhanmaaz

Description

@madhanmaaz
  • live-server currently reloads the browser when watched files change, but it does not expose any programmatic hook or callback for file change events.

Proposed API (example)

liveServer.start({
  onChange(filePath) {
    console.log(filePath);
  }
});

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions