when-changed icon indicating copy to clipboard operation
when-changed copied to clipboard

Option to specify exclude patterns on the command line

Open mgedmin opened this issue 10 years ago • 4 comments

I'd like to use when-changed to run blogofile whenever any of my website sources changes, but unfortunately blogofile writes the output into a subdirectory of the source directory, which triggers when-changed again. Infinite loop.

I'd love to be able to tell when-changed to please ignore changes to website/_site.

mgedmin avatar Apr 14 '14 18:04 mgedmin

Can you use source/*(filetype you care about)?

Cypher1 avatar Sep 16 '16 03:09 Cypher1

@mgedmin did that work for you?

Cypher1 avatar Jan 14 '17 05:01 Cypher1

I've switched to livereload in the mean time, so this issue doesn't bother me personally any more.

mgedmin avatar Jan 16 '17 08:01 mgedmin

+1, exclude pattern would be nice. E.g I want to restart Docker container on every code changes (. folder) except those in the lib/ folder where I just want to restart Apache within the Docker container. There are probably many examples similar to this.

ocervell avatar Sep 02 '21 09:09 ocervell