Skip to content

A file imported by reference and then normally  #2716

Closed

Description

@SomMeri

Main test.less:

div-direct {
  @import (reference) "file.less";
}

show-all-content {
  @import "file.less";
}

file.less:

/*
  tralala
*/
.fix {
  fix: fix;
}
.something {
  @import (reference) "file-2.less";
}

file-2.less:

/* tralala nested file */
should {
  be: invisible;
}

compiles into:

div-direct .fix {
  fix: fix;
}
div-direct .something should {
  be: invisible;
}

It should be (plus or minus comments):

show-all-content .fix {
  fix: fix;
}

Activity

  1. self-assigned this
    on Oct 23, 2015
  2. seven-phases-max commented on Oct 23, 2015

    @seven-phases-max
    Member

    Note the second "file.less" import has no effect until you add multiple there. So I suppose the resulting CSS is actually an example of another issue, #1896 probably?

  3. SomMeri commented on Oct 24, 2015

    @SomMeri
    MemberAuthor

    @seven-phases-max You are right, maybe output should be empty. (Should imports with and without reference be seen as copies for multiple purpose?).

    I am trying to fully fix import by reference now, so that it works correctly in the end. If I succeed I hope to close all (or most) reference related bugs.

  4. added a commit that references this issue on Nov 20, 2015
  5. SomMeri commented on Dec 7, 2015

    @SomMeri
    MemberAuthor

    This should be fixed by #2729 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions