Reputation: 85
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
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