Skip to content

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

@niallcampbell84

Description

@niallcampbell84

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;
}

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