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

fix(postcss): too many open files error #3695

Merged
merged 1 commit into from Apr 8, 2024
Merged

Conversation

sonofmagic
Copy link
Contributor

Hello, Unocss team, thank you for your work.

I encountered a "too many open files" error when using @unocss/postcss. This issue often occurs on Windows systems when too many files are opened simultaneously, leading to build failures.

I noticed that tailwindcss also had this problem and has already been fixed.

So I submitted a PR to address this issue in the same way as tailwindcss.

References

Async PostCSS Plugin on Windows 10 with too many parsed files (~10k) yields a webpack error (EMFILE: too many open files)

Batch reading content files to prevent too many open files error

https://github.com/tailwindlabs/tailwindcss/blob/master/src/lib/expandTailwindAtRules.js#L142

@sonofmagic sonofmagic requested a review from antfu as a code owner April 7, 2024 12:44
Copy link

netlify bot commented Apr 7, 2024

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 19f4b19
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/6612954c6552f70008811abf
😎 Deploy Preview https://deploy-preview-3695--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@antfu antfu added this pull request to the merge queue Apr 8, 2024
Merged via the queue into unocss:main with commit 119187f Apr 8, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants