Closed sudoaugustin closed 2 years ago
Sometimes we want to apply the same functions for different events. So I think it would be great if the on method accept multiple events
on
chokidar.watch("some/paths").on('change, add', () => someFunc());
(or)
chokidar.watch("some/paths").on(["change", "add"], () => someFunc());
Use 'all' event, or do it manually with loop
'all'
Sometimes we want to apply the same functions for different events. So I think it would be great if the
on
method accept multiple eventschokidar.watch("some/paths").on('change, add', () => someFunc());
(or)
chokidar.watch("some/paths").on(["change", "add"], () => someFunc());