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

Support "base" path from vite config #4

Closed
ubermanu opened this issue Dec 6, 2020 · 2 comments
Closed

Support "base" path from vite config #4

ubermanu opened this issue Dec 6, 2020 · 2 comments

Comments

@ubermanu
Copy link

ubermanu commented Dec 6, 2020

Hey,

When building static assets from VitePWA, the paths to the service worker and the manifest is hardcoded (at root level)
Would it be possible to preprend them with the "base" config from vite?

@antfu
Copy link
Member

antfu commented Dec 22, 2020

Would you mind to open a PR for it? Thanks.

hannoeru added a commit to hannoeru/vite-plugin-pwa that referenced this issue Jan 12, 2021
antfu pushed a commit that referenced this issue Jan 12, 2021
* chore: update

* fix: service worker register path & use build base (#4)

* test: add build base in example
@antfu
Copy link
Member

antfu commented Jan 16, 2021

#13

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