I'm using grunt-watch
to re-build my less style sheets:
watch: {
less: {
files: ['media/less/**/*.less'],
tasks: ['less'],
options: {
atBegin: true,
spawn: false
}
}
}
But if there is a syntax error in any of the .less
files, the task just loops, trying to re-build the .less
files every second… which makes debugging fairly difficult, because the error messages scroll past very quickly.
Is there any way fix that, so grunt-watch
will only re-run the task once the .less
files have been changed again?
This is using:
grunt@0.4.2
grunt-contrib-less@0.8.3
grunt-contrib-watch@0.5.3