I've recently released a new plugin aptly named
gulp-watch-less, which will monitor your .less files using the excellent
gulp-watch task, and output changed files to the stream whenever the file itself or any of it's
@imports have changed.
It's usage is pretty straight forward, using the same signature as the underlying
gulp less will compile all .less files, and watch for changes to those watched and their
@imports. Simple! It will also monitor the original files for changes to
@import statements (additions, deletions, path updates etc) to ensure the associated files are watched correctly!
Big thanks to Vsevolod Strukchinsky for the modifying his existing (and awesome!)
gulp-watch plugin to make this possible.