segmentio / myth

A CSS preprocessor that acts like a polyfill for future versions of the spec.
4.32k stars 131 forks source link

Comments in rule sets for variable definitions #99

Open carlcs opened 10 years ago

carlcs commented 10 years ago

All :root {} rule sets with variable definitions are generally removed from the output. But not so if they contain comments. Aiming for a clean CSS file, I'd like to have an option to have these sets (and the comments) removed, too.

:root {
  /* Font stacks */
  --font-family-sans: "Proxima Nova", sans-serif;
  --font-family-serif: serif;
  --font-family-mono: monospace;

  /* More font variables */
  --font-var: normal;
}
:root {
  --var: normal;
}
:root {
  /* Font stacks */

  /* More font variables */
}
MoOx commented 10 years ago

This shouldnt be that hard to do. Can you please report this issue in rework-vars ?

MoOx commented 10 years ago

@carlcs if we go for postcss I'll definitely handle this issue ;)