Fabien Bourigault
Fabien Bourigault

Reputation: 85

Build empty SASS file

After having create a Sass file, I would like to create a copy of this file with only the structure (only the class and the id, but not the css properties).

Is it possible ? And how ? Google doesn't help me ...

Thanks a lot

Upvotes: 0

Views: 56

Answers (1)

long-lazuli
long-lazuli

Reputation: 414

If you want to keep your selectors, you can put CSS comment inside your differents blocks. They will be present in your compiled stylesheet.

this-selector {
  // will not be present
}

but-this-one {
  /* will */
}

For an automatic parsing, you should try with postcss and, for exemple, a node.js script.

Upvotes: 1

Related Questions