You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
There are situations where information about the build process is required before vitepress finish, which cannot be done from a Vite plugin. For example, adding a PWA including the generated pages in the service worker manifest.
The current problem is that we have to include scripts after the vitepress build so that it loads the PWA plugin manually and regenerates the PWA on the distribution folder and it is a very repetitive arduous job.
Describe the solution you'd like
Adding a build-end hook providing the Vite config and the routes generated by Vitepress.
For example, using Astro integrations, you can just add a astro:build:done hook, Astro just call this hook once SSG process finish and before finishing the build process (provides some info about the SSG result like routes and urls):
Is your feature request related to a problem? Please describe.
There are situations where information about the build process is required before vitepress finish, which cannot be done from a Vite plugin. For example, adding a PWA including the generated pages in the service worker manifest.
The current problem is that we have to include scripts after the vitepress build so that it loads the PWA plugin manually and regenerates the PWA on the distribution folder and it is a very repetitive arduous job.
Describe the solution you'd like
Adding a
build-end
hook providing the Vite config and the routes generated by Vitepress.For example, using
Astro
integrations, you can just add aastro:build:done
hook,Astro
just call this hook once SSG process finish and before finishing the build process (provides some info about the SSG result like routes and urls):https://docs.astro.build/en/reference/integrations-reference/#quick-api-reference
I can make a PR for the build end hook.
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: