Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

@import duplicates mixins #71

Closed
bobthecow opened this Issue · 2 comments

2 participants

@bobthecow

If two files in your @import chain import the same file, the mixins from that file are duplicated, and their rules are added twice to any rules which include the mixin. That's not a very solid description of the problem, but here's how to reproduce it:

given the following three files

alpha.less

.alpha {
    font-size: 1em;
}

beta.less

@import "alpha.less";

gamma.less

@import "alpha.less";
@import "beta.less";

.test {
    .alpha;
}

output from lessc

alpha.less

.alpha { font-size: 1em; }

beta.less

.alpha { font-size: 1em; }

gamma.less

.alpha, .test { font-size: 1em; }

output from less.js

alpha.less

.alpha {
  font-size: 1em;
}

beta.less

.alpha {
  font-size: 1em;
}

gamma.less

.alpha {
  font-size: 1em;
}
.alpha {
  font-size: 1em;
}
.test {
  font-size: 1em;
  font-size: 1em;
}
@vicb

seems to be a duplicate of issue #49

@bobthecow

Yup. You're right. Github's awesome issue search strikes again.

Who do I have to fork to get stemming support?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.