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.
- 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/**').
- 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.
There seem to be two ways to do this: (1) via something like a
opts.chokidar, or (2) piecemeal options likeusePolling,intervalandignored.opts.chokidar:opts.chokidaris unique.--chokidar [ --usePolling --ignored '**/node_modules/**' ]vs--usePolling --ignoreWatch '**/node_modules/**').