Skip to content

chore: update vite-plugin-pwa npm package and configuration#2371

Merged
meteyou merged 1 commit intomainsail-crew:developfrom
meteyou:chore/update-vite-plugin-pwa
Jan 4, 2026
Merged

chore: update vite-plugin-pwa npm package and configuration#2371
meteyou merged 1 commit intomainsail-crew:developfrom
meteyou:chore/update-vite-plugin-pwa

Conversation

@meteyou
Copy link
Member

@meteyou meteyou commented Jan 4, 2026

Description

This PR just upgrade the vite-plugin-pwa npm package and upgrade the config file (add missing attributes). This PR also fix a warning when executing npm ci:

sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

Related Tickets & Documents

none

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

none

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the vite-plugin-pwa package and enhances the PWA configuration by adding missing manifest attributes and improving runtime caching options. The changes aim to address a deprecation warning related to sourcemap-codec.

  • Updates vite-plugin-pwa from version 0.17.5 to 1.2.0
  • Adds PWA manifest attributes (description, display mode, start URL)
  • Simplifies URL pattern matching from function to regex
  • Adds cacheableResponse configuration for better cache control

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
package.json Updates vite-plugin-pwa package version to 1.2.0
vite.config.ts Adds PWA manifest attributes (description, display, start_url) and enhances runtime caching configuration with cacheableResponse options

@meteyou meteyou added this to the v2.17.0 milestone Jan 4, 2026
@meteyou meteyou merged commit eaa64d3 into mainsail-crew:develop Jan 4, 2026
12 checks passed
@meteyou meteyou deleted the chore/update-vite-plugin-pwa branch January 4, 2026 21: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.

3 participants