Following on from my previous itch-scratching, I’ve improved lesswatch. The new version includes support for dependency checking. For example, say we have header.less and style.less imports it:

/* styles.less */
@import "header";

body {
...
}

When header.less is changed, lesswatch compiles both header.less and styles.less.