postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
597 stars 77 forks source link

Remove :root in output file while preserve: false? #160

Closed joe223 closed 5 years ago

joe223 commented 5 years ago
:root {
  /** something **/
  --color: red;
}

h1 {
  color: var(--color);
}

/* becomes */
:root {
  /** something **/
}
h1 {
  color: red;
}

Can we just remove :root when it contain comments?

robertu7 commented 5 years ago

Same issue :)

pascalduez commented 5 years ago

Dupe of #123