dotless/dotless — pull request #345 by ronl (2013-11-27 03:39:54+00:00)
Title: Watcher fix when .less file imports a .less.css file - watches .less.less

...s.less instead

Assume we have a .less file ...

#import "filea"
#import "fileb.less"
#import "filec.less.css"

If you run the watcher on this file, it watches the following dependent files...

filea.less
fileb.less
filec.less.less

Notice the last file, it is incorrect. If I modify the filec.less.css, the top-level file is not recompiled. I am assuming the ChangeExtension may have been added to handle import of files without a less extension. e.g. "filea", and then therefore convert to the assumed filename, filea.less.

Seems that the filenames that come back from GetImports are now all correct, e.g. "filea" import is returned as "filea.less". So appears that the change extension is probably no longer required.