csstools / postcss-extend-rule

Use the @extend at-rule and functional selectors in CSS
https://jonathantneal.github.io/postcss-extend-rule/
Creative Commons Zero v1.0 Universal
51 stars 7 forks source link

Weird end of output #1

Closed AlexWayfer closed 6 years ago

AlexWayfer commented 6 years ago

Hello!

I have PostCSS config:

module.exports = {
  plugins: [
    require('postcss-extend-rule')
  ]
};

And style file:

button {
  color: red;
}

.button {
  @extend button;
}

Output of postcss test.scss is:

button {
  color: red;
}

.button {
  color: red;
}

..button {}

What is ..button {}?

Thanks.

jonathantneal commented 6 years ago

Resolved by #2