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

feat(webpack): add scan-only mode to adapt webpack5 persistent cache #2652

Closed
wants to merge 1 commit into from

Conversation

GrapevineLin
Copy link

@GrapevineLin GrapevineLin commented May 23, 2023

fix#419

Description:
This issue is related to webpack5 persistent cache because @unocss/webpack using loaders to extract code . Inspired by Windicss's pre-scanning, I think we can do it similarly. Fortunately there is a solution already: #1963.

Therefore, I added an option scanModeOnly to only use file-sacnning to extract code, which can solve the issue of persistent caching.

@GrapevineLin GrapevineLin requested a review from antfu as a code owner May 23, 2023 03:46
@netlify
Copy link

netlify bot commented May 23, 2023

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b4f644d
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/646c708630fb6200080631ab
😎 Deploy Preview https://deploy-preview-2652--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 settings.

@GrapevineLin GrapevineLin changed the title feat(webpack): add a scan-only mode feat(webpack): add scan-only mode to adapt webpack5 persistent cache May 23, 2023
@antfu
Copy link
Member

antfu commented May 23, 2023

#2503 should solve this better

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