mysticatea / cpx

A cli tool to watch and copy file globs.
MIT License
524 stars 36 forks source link

cpx watches irrelevant files, while I want it to watch only one file #39

Open arian-h opened 6 years ago

arian-h commented 6 years ago

I use cpx like this: cpx "./bundle.js" ../../resources/public/js --watch and I expect it to watch only one file: bundle.js but it watches many other irrelevant files. I have node_modules directory in the same directory I run cpx (where bundle.js is located), and it watches all files in the node_modules directory.

arian-h commented 6 years ago

And I just noticed that it only creates an empty file in destination. any idea why this happens ?