# Vite

> Vite is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Vite configuration, plugins, optimization, HMR, and build customization.

- Skill name: `vite`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/web-development/skills/vite/SKILL.md
- Repository: a5c-ai/babysitter (1,548 GitHub stars when collected)

## SKILL.md

# Vite Skill

Expert assistance for configuring and optimizing Vite builds.

## Capabilities

- Configure Vite for various frameworks
- Create and use plugins
- Optimize builds
- Configure dev server
- Handle environment variables

## Configuration

```typescript
// vite.config.ts
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';

export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src'),
    },
  },
  server: {
    port: 3000,
    proxy: {
      '/api': 'http://localhost:8080',
    },
  },
  build: {
    rollupOptions: {
      output: {
        manualChunks: {
          vendor: ['react', 'react-dom'],
        },
      },
    },
  },
});
```

## Target Processes

- frontend-build-setup
- development-environment
- build-optimization

---

Source: https://www.openparable.com/skill/development/vite (OpenParable). Cite the canonical URL above.
