Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detached rulesets aren't imported when using reference option #66

Open
niallcampbell84 opened this issue Mar 9, 2017 · 1 comment
Open

Comments

@niallcampbell84
Copy link

Normal less variables import as expected, but detached rulesets don't import. For example

@import ( reference ) "_detached-rulesets-test.less"
@_my_detached_ruleset();
.test_normal_variables {
    margin: unit( @_normal_variable_test, px );
}

and in _detached-rulesets-test.less

@_normal_variable_test: 26;
@_my_detached_ruleset: {
    BODY {
        margin: 10px;
    }
}

this gives the output

.test_normal_variables {
    margin: 26px;
}
@mishal
Copy link
Owner

mishal commented Mar 9, 2017

ILess produces the same ouput as less.js 2.5.3...
The latest less.js has this fixed.

the bug was fixed in less.js in 2.6.0 (see https://raw.githubusercontent.com/less/less.js/master/CHANGELOG.md)

This might be the less.js PR: less/less.js#2729

Any help on moving ILess forward would be very appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants