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(next-pwa): re-adjust workboxOptions.exclude defaults #130

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

DuCanhGH
Copy link
Owner

@DuCanhGH DuCanhGH commented Jan 4, 2024

Fixes #101.

What?

Change the default workboxOptions.exclude to [/\/_next\/static\/.*(?<!\.p)\.woff2/, /\.map$/, /^manifest.*\.js$/].

Why?

This proves to be more sensible than the old defaults.

Would this incur a breaking change?

Technically yes according to my definitions of a breaking change. It will cause a behavioural change in the built app, unexpectedly so for those who don't pinpoint their dependencies' versions. However, I don't believe this has an impact big enough. This... simply improves the user experience, and it won't cause any build to suddenly fail.

Copy link

changeset-bot bot commented Jan 4, 2024

🦋 Changeset detected

Latest commit: 1e5f2b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ducanh2912/next-pwa Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@DuCanhGH DuCanhGH merged commit 9ff6c29 into master Jan 4, 2024
5 checks passed
@DuCanhGH DuCanhGH deleted the workbox-exclude-defaults branch January 4, 2024 14:18
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.

[Docs]: next-pwa preloading defaults may not be optimal for avg user
1 participant