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

Feature Request: Support for Vite Multi-Page Apps #813

Open
SufyanDahalan opened this issue Jan 15, 2025 · 2 comments
Open

Feature Request: Support for Vite Multi-Page Apps #813

SufyanDahalan opened this issue Jan 15, 2025 · 2 comments

Comments

@SufyanDahalan
Copy link

Hi, I have a Vite MPA setup and am having to use workaround in order to create a PWA for one of 5 apps.

Currently,

  1. The link to the generated manifest file is added to all apps
  2. Setting up the path to the manifest is buggy and needs extra steps outside Vite.
  3. Creating multiple, different PWAs for multiple apps in a Vite MPA setting is complete hassle.

I imaging allowing a parameter of type Partial<VitePWAOptions>[] and setting up the handling logic would be a first step in the right direction.

If the team doesn’t have the bandwidth to implement this feature, I would be happy to contribute and work on it myself. Please let me know if this is something that would be helpful.

@userquin
Copy link
Member

I haven't tried Vite MPA, I think you can register multiple pwa plugins, the problem is about configuring each sw (I guess you want a sw per entry point, and so assets can be mixed from multiple apps: /app1 with sw1, app2 with sw2...).

@userquin
Copy link
Member

userquin commented Jan 15, 2025

Maybe you can provide a minimal vite mpa app reproduction and so we can play with it.

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