halay08

vite

0
0
# Install this skill:
npx skills add halay08/fullstack-agent-skills --skill "vite"

Install specific skill from multi-skill repository

# Description

Vite is a next-generation frontend build tool that provides a fast dev server with HMR and optimized production builds

# SKILL.md


name: vite
description: Vite is a next-generation frontend build tool that provides a fast dev server with HMR and optimized production builds
license: MIT


Vite

Next-gen frontend build tool with native ESM dev server and Rolldown-powered builds.

When to Use

  • Setting up frontend project build tooling
  • Configuring dev server, HMR, proxies
  • Building for production (SPA, MPA, library, SSR)
  • Writing Vite plugins
  • Integrating with backend frameworks

Quick Start

npm create vite@latest my-app
// vite.config.ts
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()],
  server: {
    port: 3000,
  },
})
vite          # Dev server
vite build    # Production build
vite preview  # Preview build

Reference Files

Task File
Config file, options, CLI, plugins config.md
ESM, CSS, assets, env vars, glob import features.md
Dev server, HMR, workers, performance dev.md
Production, library mode, SSR, chunking build.md
JS API, plugin authoring, module graph advanced.md

Load Based on Task

Setting up a project? β†’ Load config.md
Using CSS/assets/env vars? β†’ Load features.md
Dev server issues? β†’ Load dev.md
Building for production? β†’ Load build.md
Writing plugins? β†’ Load advanced.md

Cross-Skill References

  • Testing β†’ Use vitest skill (Vite-native testing)
  • Vue projects β†’ Use vue skill for component patterns
  • Library bundling β†’ Use tsdown skill for TypeScript libs

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.