patrick-steele-idem / browser-refresh

Node.js module to enable server restart and browser refresh in response to file modifications
110 stars 18 forks source link

.browser-refresh-ignore does not seem to honor overrides #5

Closed seangates closed 9 years ago

seangates commented 9 years ago

.browser-refresh-ignore does not seem to honor overrides. For example

!/node_modules/my-module

... does not currently work.

Note: I'm not sure if having the "my-module" as a symbolic link matters or not, but my module is a symbolic link.

patrick-steele-idem commented 9 years ago

The problem is that chokidar won't watch a directory below an ignored directory, but fortunately there is a simple workaround. Add a file named .browser-refresh in the root of your project with the following content:

{
    "watch": [
        ".",
        "./node_modules/my-module"
    ]
}

Let me know if that does or does not work for you.

seangates commented 9 years ago

Didn't work. I now get an error from chokidar. Thanks for continuing to look into it.

seangates commented 9 years ago

This worked along with your update. Thanks!