How Vite HMR updates modules and preserves state
Trace Vite hot module replacement through its module graph and WebSocket, then use hot.accept, hot.dispose, hot.data, and custom events.
Trace Vite hot module replacement through its module graph and WebSocket, then use hot.accept, hot.dispose, hot.data, and custom events.
Serve WOFF2 fonts locally, control rendering with font-display, and use a Vite build hook to preload the emitted hashed font files.
Move a Vite project from Tailwind v3 PostCSS to the v4 Vite plugin, define theme tokens in CSS, and compare build output and timing.
See how Vite rewrites CSS Module class names, configure readable development names and PostCSS transforms, and check the compiled CSS.
Combine a local SVG icon set into a DOM sprite, render symbols through a Vue component, and verify the resulting asset and request counts.
Choose when Vite imports an asset as text, returns a URL, inlines it, or emits a worker, then inspect the build and development responses.
Use Vite's mergeConfig to share plugins and aliases, keep development proxy settings separate, and verify staging and production builds.
Keep TypeScript and Vite path aliases aligned with resolve.alias or vite-tsconfig-paths, then verify module resolution and type safety in CI.
Set environment precedence for development, staging, and production, load values in vite.config.ts, and verify what Vite embeds in the client bundle.
Trace esbuild dependency optimization in Vite 7 and earlier, inspect the .vite/deps cache, and see what changes with Vite 8's Rolldown engine.