maximkoretskiy / postcss-autoreset

PostCSS plugin for automatic rules isolation
MIT License
244 stars 11 forks source link

It shouldn't add reset if matchedSelectors.length == 0 #19

Closed giuseppeg closed 7 years ago

giuseppeg commented 7 years ago

Hi @maximkoretskiy it seems that the plugin adds a reset even when matchedSelectors.length is 0. This is what I see:

{
  /* reset rules */
}

/* my css */
giuseppeg commented 7 years ago

@simonsmith blocker for us ^

simonsmith commented 7 years ago

An easy fix I expect?