Variables.less not updating with grunt watch?

Hi everyone, I’m just coming back to WordPress/Roots and am a little new to grunt/less.

I’ve setup everything fine, but I’m having one problem, which is when I am running “grunt watch” it seems to update for files like _header.less for instance, but not for files like “variables.less” in the bootstrap folder. It just doesn’t recognize that I have made a change to the LESS, until I run “grunt dev” and of course I would like it to auto update using grunt watch like the other less files.

How can I get Variables.less to automatically update like other less files using grunt watch/live reload.

Sorry if this is more of a workflow question. Thanks in advance.

First check this out:
http://discourse.roots.io/t/no-less-extensions-in--bootstrap-less/2101/9

If after reading that you still want grunt watch to monitor assets/vendor/bootstrap/less/variables.less then just add it to the list of files that grunt watch monitors: https://github.com/roots/roots/blob/master/Gruntfile.js#L126

Enjoy it while it lasts :wink:

2 Likes

Thanks so much, very helpful.