when-changed
when-changed copied to clipboard
Option to specify exclude patterns on the command line
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.
Can you use source/*(filetype you care about)?
@mgedmin did that work for you?
I've switched to livereload in the mean time, so this issue doesn't bother me personally any more.
+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.