@pitlane/vite-plugin-remix
The remix() Vite plugin — Remix 3 build orchestration, the clientEntry()
island identity transform, dev serving through the app's fetch handler, hot
module replacement for components and server-rendered data, prerendering,
and a preview server, for any Vite or Vite+ project.
See
Interfaces
- PrerenderConfig. The object form of the
prerenderoption: which paths to render, plus how many to render at once and whether to follow the links they contain. - PrerenderContext. What a
prerenderfunction receives. - RemixPluginOptions. The options remix accepts. Every one has a default, and most projects pass none.
Type Aliases
- PrerenderOption. Everything
remix({ prerender })accepts:truefor every static path in the route map,falsefor none, an explicit path list, a function that computes one, or a PrerenderConfig that addsconcurrencyandspider. - PrerenderPaths. A function that decides which paths to prerender, for path sets that need async work — a CMS query, a filesystem scan, a database read.
- PrerenderPathsOption. The paths to prerender:
truefor every static path in the route map, an explicit list, or a function that computes one.
Functions
- remix. Wires Remix 3 into a Vite or Vite+ project: multi-environment builds (
dist/ssr+dist/client) with an asset manifest forcreateAssetResolver(), portableclientEntry(import.meta.url, …)island identities thatrender({ assets })resolves, dev serving through the app's fetch handler, prerendering, and a preview server for the production build.