Skip to content

Invalid variable compiled when nesting more @imports #431

@lemmon

Description

@lemmon

Let's say I have three different files nested by @import. First master.less is simple:

@import 'variables.less';

.product {
    width:@productWidth;
}

...variables.less file:

@import 'variables.base.less';

@productWidth: 200px;

...and finally variables.base.less file:

@productWidth: 9999px;

Correctly, less css should return width: 200px; but lessphp is returning 9999px instead; This worked perfectly in version 0.3.4-2 which I am still stuck at. Newest versions are useless to me since this nested imports are crucial to me.

I have tested the problem with Less mac app and less.js and everything returns 200px;

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions