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

Why is there a maximum? #92

Open
otaviomad opened this issue Oct 16, 2023 · 1 comment
Open

Why is there a maximum? #92

otaviomad opened this issue Oct 16, 2023 · 1 comment

Comments

@otaviomad
Copy link

otaviomad commented Oct 16, 2023

I'm using Vite to build my storybook manager and bundle. All my css ends up in one 223kb css file. Using this plugin works fine in dev mode, but since everything is in one file in production, it gives the Reached maximum of 1000 pseudo states warning and quietly stops working for most of my stories. Why is this limitation there? Is there any plans on having a way of setting up the limit by yourself? This is breaking my chromatic builds.

@ghengeveld
Copy link
Member

The limit is essentially arbitrary. It's intended to avoid crashing your browser when you make a mistake. If you legitimately have >1000 rules then I think it's fair to make the limit configurable. Happy to review a PR for that.

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

2 participants