Skip to content

Better explain import by reference with html tag based rules. #205

Closed
@AoDev

Description

@AoDev

Hello,

A simple observation. When I use:

@import (reference) "docs.less";

if docs.less contains tag rules like this:

div {
    background-color: #000;
}

.black {
    background-color: #000;
}

The first rule will be outputted. No problem here. But it's not mentioned in the docs.

I actually use this feature in a real use case. For example, I import twitter bootstrap as a "mixin" library. I import the forms related less file by reference and then pick only what I need. (but it still outputs their form related tag rules, which is needed)

I want to make sure that it's an expected behaviour, clarify the docs and that it won't change in the future. (well it would break my stuff ;)

Metadata

Metadata

Assignees

No one assigned

    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