Skip to content

Extend from @import (reference)  #1878

@SomMeri

Description

@SomMeri

Selectors from file imported as (reference) can extend rulesets in the main file. I think that nothing from reference imported file should appear in the main file, unless main file asks for it (either by extend or mixin).

The file import-as-reference-extend.less contains one extend:

.unusedAndReference:extend(.mainRuleset) {
    unused-and: reference;
}

and main.less imports it as reference:

@import (reference) "import/import-as-reference-extend.less";
.mainRuleset {
    main: ruleset;
}

It is compiled into:

.mainRuleset,
.unusedAndReference {
  main: ruleset;
}

Expected result:

.mainRuleset{
  main: ruleset;
}

Tested on windowns node.js less-1.6.3.js

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions