Skip to content

Common import(-once) doesn't happen after reference-import #3040

Closed
@thybzi

Description

@thybzi

One more strange and unexpected import case.

Common import (without multiple, but with expected CSS output) doesn't happen if the same file was already reference-imported earlier.

The fileset to reproduce:

main.less

@import 'foo';
@import 'bar';

bar.less

@bar-height: 42px;

.bar {
    height: @bar-height;
}

foo.less

@import (reference) 'bar';

.foo {
    padding-top: @bar-height;
}

Expected CSS output for main.less compiled:

.foo {
    padding-top: 42px;
}

.bar {
    height: 42px;
}

Actual CSS output for main.less compiled:

.foo {
    padding-top: 42px;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions