kdzwinel / SnappySnippet

Chrome extension that allows easy extraction of CSS and HTML from selected element.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generate class instead of id

mhamri opened this issue · comments

i was thinking if the extension in case of webpack can use the class naming right, because the name of the file and css can be interpreted directly, or in general, generate class instead of id.

the reason for this is, mostly the websites are using bootstrap, but the SnappySnippet is merging bootstrap and none bootstrap css ruels into ID rules. there is no way for me to clean up the css rules if they don't have same name.
also use something like https://github.com/ben-eb/postcss-merge-rules to merge the generated css will make it much cleaner.
i am also using http://rbtech.github.io/css-purge/ to remove duplicated css rules somehow, but still i need to work on it to merge the generated code into my project