When using SetImportDirs(['path1','path2'..]); does this work with @import statements?
The reason I ask is that I set an override directory for a file called foo.less, there is also a file called foo.less in the same directory as style.less . there is a file called style.less which has the following code
@import 'foo.less;
Does this library look for path1/foo.less then path2/foo.less and return the first one it finds or is it the last one because in my code it's only looking for the last one and not even bothering to look for the other one.
I can prove this with a function on import_callback (as setup in the $options for the constructor) which tells me which files it's looking for but the path1/foo.less never gets looked for.
Have I completely missed the point of the import_callback or something?
Hi.
When using SetImportDirs(['path1','path2'..]); does this work with @import statements?
The reason I ask is that I set an override directory for a file called
foo.less
, there is also a file calledfoo.less
in the same directory asstyle.less
. there is a file calledstyle.less
which has the following code@import 'foo.less
;Does this library look for
path1/foo.less
thenpath2/foo.less
and return the first one it finds or is it the last one because in my code it's only looking for the last one and not even bothering to look for the other one.I can prove this with a function on
import_callback
(as setup in the $options for the constructor) which tells me which files it's looking for but thepath1/foo.less
never gets looked for.Have I completely missed the point of the
import_callback
or something?