Skip to content

Passing options to chokidar #162

@zertosh

Description

@zertosh

There seem to be two ways to do this: (1) via something like a opts.chokidar, or (2) piecemeal options like usePolling, interval and ignored.

  1. via something like a opts.chokidar:
    • Pros:
      • no maintenance on the part of watchify since chokidar just takes a whole object blindly.
      • it's mostly isolated from browserify options since opts.chokidar is unique.
    • Cons:
      • it's a mouthful via the command line (e.g. --chokidar [ --usePolling --ignored '**/node_modules/**' ] vs --usePolling --ignoreWatch '**/node_modules/**').
  2. piecemeal options:
    • Pros:
      • concise.
      • implementation agnostic (there are alternatives to chokidar like sane which can piggyback on watchman).
    • Cons:
      • clashes with existing browserify options (the entire opts object is passed to module-deps, browser-pack, etc.).
      • no options autonomy since options would have to be picked off the opts object.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions