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

--reset is included multiple times in the stylesheet #48

Open
erfanio opened this issue Jun 5, 2017 · 0 comments
Open

--reset is included multiple times in the stylesheet #48

erfanio opened this issue Jun 5, 2017 · 0 comments

Comments

@erfanio
Copy link

erfanio commented Jun 5, 2017

When building the stylesheet --reset from variables.css is included multiple times.
theme.css of each component has its own @apply --reset; hence the reason it is included just before the styles of each component in the stylesheet.

image

Since the name of the class is not different (in my case all of them have _313TK classname) and exists in the stylesheet multiple times, chrome recognises each as an override of the one before, and this one class shows up tens of time in the dev tools when looking at the styles of the an element, which is super annoying.

image

In the meantime I have written a script that removes all the duplicates based on a regex (\._313TK{[^\}]*}\._313TK[^\}]*}) but this really needs to be fixed especially since I notice chrome dev tools really struggling when I am looking through styles (look how tiny the scrollbar is in the screenshot).

@erfanio erfanio changed the title --reset is included multiple times in the stylesheet --reset is included multiple times in the stylesheet Jun 5, 2017
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