sass-extract
sass-extract copied to clipboard
Include doc comments
I find this plugin great for documentation purposes (used in Storybook pages).
Would it be possible to somehow add doc comments found in the preceding lines?
Eg:
So object for this variable would also include {... comments: ['Color for emphasized texts']}
This would enable us to keep documentation together with code.
Unrelated to your actual problem, but would you mind explaining how you use sass-extract
with Storybook?
Since we actually compile the sass source to extract variables I'm fairly sure comments are not preserved, and it would likely require traversing the source AST separately, which is not in scope.