Closed hsz closed 9 years ago
Hi Jakub,
Is it possible for you to just import project.less into base.less after you import colors.less?
Can you add this as an issue to the lessphp repository as well?
Hello Robert,
It is not possible because of hierarchical stucture of included stylesheets (every subpage loads base.less
and file specified for its context.
I can create an issue at lessphp repo.
issue on parent repo, not something I can fix here at least
I have
base.less
stylesheet which includescolors.less
. Importing works well, I can use@color-red
color inbase.less
.When I use second stylesheet
project.less
which also includescolors.less
, it does not loads defined variables.The problem is caused by last change in
lessc.inc.php
.Second try to import
colors.less
breakstryImport
function because it was already loaded and does not injectscolors.less
variables.If I comment out
return
line, it works well again.