You can watch everything by passing no arguments to npm-watch, or watch just one script by giving it as a command line argument.
npm-watch has a certain amount of fixed overhead to run (~100MB of RAM).
In our project we watch a subset of things that can be watch, by running npm-watch once per script. If npm-watch allowed multiple scripts to be specified as arguments, we could avoid the overhead of multiple npm-watch processes because the core watching code and dependencies would only be loaded into memory once.
You can watch everything by passing no arguments to
npm-watch
, or watch just one script by giving it as a command line argument.npm-watch
has a certain amount of fixed overhead to run (~100MB of RAM).In our project we watch a subset of things that can be watch, by running
npm-watch
once per script. Ifnpm-watch
allowed multiple scripts to be specified as arguments, we could avoid the overhead of multiplenpm-watch
processes because the core watching code and dependencies would only be loaded into memory once.