travco / postcss-extend

A PostCSS plugin to minimize the number of repeat-selectors and rules you write
MIT License
114 stars 8 forks source link

Does not work in a nested class name #14

Closed fsy0718 closed 8 years ago

fsy0718 commented 8 years ago
.extend {
  color: red;
}
.test{
  .tip {
    @extend .extend;
  }
}

expect output link this

.extend,.test .tip{
  color: red;
}

actually output link this

.extend, .tip {
    color: red;
}
.test{
}
timkelty commented 8 years ago

@fsy0718 are you including postcss-nested before or after postcss-extend?

fsy0718 commented 8 years ago

It seems to be the order of the two plug-in I made a mistake, and now the output is normal, thank you

travco commented 8 years ago

Thanks for jumping on that @timkelty .