Is it possible to recombile related *.less files with filewatcher

One of my *.less files changes. And it is included in some other *.less files, is it possible somehow to automatially recopile related files too?

Comment actions Permalink

Hi there,

It should recompile master files automatically.

In case if it does not work -- invoke file watcher manually on any desired files:

Comment actions Permalink

You I was misunderstood.

I mean I have files:



application.less (this file has line @include 'comon.less')

after I made changes to common.less, I want application.less to be recompiled automatically because it depends on changed common.less.

Comment actions Permalink

And that's exactly how it works for me -- master file recompiled when included file gets changed.

Possibly it's due to your second thread -- the way you include partials (where they are located).


@import "includes/_normalize";
@import "includes/_mixins";
@import "includes/_common";



Comment actions Permalink

Thanks, that problem was that "Track only root files" was unchecked. Not very obvious option name fot this feature I think.

BTW 2 more LESS filewatcher related questions

1) I have files output only if "Create output from stdout" is checked. (output path is $FileNameWithoutExtension$.css), when does it work if it is not cheked?

2) is it possible make filewather not produce empty files?

Comment actions Permalink

1) I'm on Windows and that option does not work for me for quote some time now. It used to work like that before.

It should work .. because lessc outputs compiled result to stdout by default unless you tell it to send it to a file (like I did)

2) No clue what you are talking about. In my experience (with my simple code base) it never happened (at very least I do not remember this). Unless, maybe, it's because of #1

Comment actions Permalink

Ok thank you for your help.


Please sign in to leave a comment.