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?

0
6 comments

Hi there,

It should recompile master files automatically.

In case if it does not work -- invoke file watcher manually on any desired files: http://stackoverflow.com/a/20012655/783119

0
Avatar
Permanently deleted user

You I was misunderstood.

I mean I have files:

common.less

and

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.

0

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).

master.less

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


screen01.png

screen02.png

0
Avatar
Permanently deleted user

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?

0

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

0
Avatar
Permanently deleted user

Ok thank you for your help.

0

Please sign in to leave a comment.