Function spoolVite
-
spoolVite(
options: SpoolViteOptions,
): Omit<Plugin<any>, "configResolved"> & {
configResolved(config: ResolvedConfig): void;
}Parameters
- options: SpoolViteOptions
Returns Omit<Plugin<any>, "configResolved"> & {
configResolved(config: ResolvedConfig): void;
}
A Vite plugin. In
serveit injects the page runtime tag into HTML entries and serves the worker script and spool's paths fromspool, and logs each fetch or XHR GET of the dev server's own origin that no data family covers. In a clientbuildit publishes the static tier into the output directory (seestatic). The built HTML gets no tag from the plugin: a build goes to the app's spool server, which adds the same tag to each response.