Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate class instead of id #65

Open
mhamri opened this issue May 28, 2018 · 0 comments
Open

generate class instead of id #65

mhamri opened this issue May 28, 2018 · 0 comments

Comments

@mhamri
Copy link

mhamri commented May 28, 2018

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

@mhamri mhamri changed the title class name generate class instead of id May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant