javascript - How to compile main.less when I save other.less using gruntfile.js -


i have several .less files site, , main 1 imports others. i've come across situation make changes in other.less file grunt compile, won't compile main.less file 1 need.

i don't know how configure gruntfile.js compile main.less file whenever detects changes in root folder leave other .less files uncompiled.

any appreciated!

create grunt watch (https://github.com/gruntjs/grunt-contrib-watch) job watches of less files. when changes, run less job compiles main.less file


Comments