vite

Configure Vite projects with vite.config.ts and defineConfig patterns.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/stevessr/dotsfiles --skill vite-stevessr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vite
Source: https://github.com/stevessr/dotsfiles/tree/main/dot_agents/skills/vite
Command: npx skills add https://github.com/stevessr/dotsfiles --skill vite-stevessr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vite configuration, plugin API usage, and migration guidance are often scattered; this Skill consolidates best practices and up-to-date patterns for efficient setup, faster builds, and SSR-ready projects.

Core Features & Use Cases

  • Configuration patterns using vite.config.ts and defineConfig for dev/build
  • Plugin API coverage for extending Vite with custom plugins and transforms
  • Build & SSR workflows including library mode, SSR middleware, and Rolldown migration notes

Quick Start

Create a minimal vite.config.ts with defineConfig to bootstrap a dev server.

Frequently Asked Questions about vite

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Vite using vite.config.ts and defineConfig for development and build workflows?

To configure Vite, use the vite.config.ts file and leverage the defineConfig helper to establish robust dev and build workflows. This approach streamlines environment-specific settings and ensures type-safe project bootstrapping.

What is the best way to use the Vite plugin API to create custom transforms?

The Vite plugin API allows you to extend the build tool by writing custom plugins and transforms. Using this API, developers can intercept and modify module resolution and output during the build process.

How do I set up SSR middleware with Vite for server-side rendering?

Setting up SSR middleware with Vite involves configuring the server-side rendering workflows to handle requests. This Skill provides patterns for integrating SSR middleware to enable robust server-rendered applications.

Does Vite support library mode for building and bundling component libraries?

Yes, Vite supports library mode to help developers build and bundle component libraries efficiently. This mode provides specific configuration patterns tailored for outputting reusable libraries instead of standard applications.

What do I need to know about Rolldown migration when upgrading to Vite 8?

Migrating to Vite 8 with Rolldown requires understanding the updated build tool architecture and migration references. This Skill consolidates necessary Rolldown migration notes to ensure a smooth transition for faster builds.