Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function spoolVite

    • A Vite plugin. In serve it injects the page runtime tag into HTML entries and serves the worker script and spool's paths from spool, and logs each fetch or XHR GET of the dev server's own origin that no data family covers. In a client build it publishes the static tier into the output directory (see static). 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.

      Parameters

      Returns Omit<Plugin<any>, "configResolved"> & {
          configResolved(config: ResolvedConfig): void;
      }