D
D
Damir Sayahov2017-01-24 16:35:20
css
Damir Sayahov, 2017-01-24 16:35:20

How to get the selectors of all classes from the style sheet?

Good afternoon. There is a huge style sheet. How can I get only selectors from this table, without the css rules themselves? Initially has SCSS syntax. I have not worked with PostCSS before, but maybe it will help in solving this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
whoisthere, 2017-01-24
@damir_sayahov

Copy the code of the table and clean the attributes in the editor with regular expressions.
For example, we are looking for all the STYLE attributes and replacing them with emptiness.
style="[^"]*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question