jgonera/autoless

files that are importeded by another are not compiled themselves.

leecunliffe opened this issue · 0 comments

edit: after looking at the code, clearly this is intended behavior...

This may be a 'feature' rather than a 'bug', but here is what happens.

I have two less files.

a.less:

@import b.less
.some-class { ...

b.less

.another-class { ...

When I edit b.css, autoless will recompile a.less (expected), but it doesn't individually compile b.less. However, I want a compiled version of b.less because on another page, I include the compiled b.less on its own.

It might be nice to have a setting to 'compile imported files'?

I guess a potential work around would be to have another file c.less that imports b.less and I include the compiled c.less on the page where all I want is b.less.