jpskill.com
🛠️ 開発・MCP コミュニティ

Viteを使ったプロジェクト開発で、設定ファイルやプラグインAPIを操作したり、SSRアプリやライブラリを構築したりする際に、Viteの機能を最大限に活用するSkill。

vite

Viteプロジェクトの構築ツール設定、プラグインAPI、SSR、およびVite 8 Rolldownへの移行をサポートするSkill。

📜 元の英語説明(参考)

Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Viteプロジェクトの構築ツール設定、プラグインAPI、SSR、およびVite 8 Rolldownへの移行をサポートするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o vite.zip https://jpskill.com/download/5546.zip && unzip -o vite.zip && rm vite.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5546.zip -OutFile "$d\vite.zip"; Expand-Archive "$d\vite.zip" -DestinationPath $d -Force; ri "$d\vite.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して vite.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → vite フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-18
同梱ファイル
7

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Vite

Vite 8 ベータ版(Rolldown 搭載)に基づいています。Vite 8 は Rolldown バンドラーと Oxc トランスフォーマーを使用しています。

Vite は、高速な開発サーバー(ネイティブ ESM + HMR)と最適化されたプロダクションビルドを備えた、次世代のフロントエンドビルドツールです。

設定

  • TypeScript を使用する: vite.config.ts を推奨します
  • 常に ESM を使用し、CommonJS は避けてください

コア

トピック 説明 参照
設定 vite.config.tsdefineConfig、条件付き設定、loadEnv core-config
機能 import.meta.glob、アセットクエリ(?raw?url)、import.meta.env、HMR API core-features
プラグイン API Vite 固有のフック、仮想モジュール、プラグインの順序 core-plugin-api

ビルド & SSR

トピック 説明 参照
ビルド & SSR ライブラリモード、SSR ミドルウェアモード、ssrLoadModule、JavaScript API build-and-ssr

高度な機能

トピック 説明 参照
環境 API Vite 6+ のマルチ環境サポート、カスタムランタイム environment-api
Rolldown への移行 Vite 8 の変更点: Rolldown バンドラー、Oxc トランスフォーマー、設定の移行 rolldown-migration

クイックリファレンス

CLI コマンド

vite              # 開発サーバーを起動
vite build        # プロダクションビルド
vite preview      # プロダクションビルドをプレビュー
vite build --ssr  # SSR ビルド

共通設定

import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [],
  resolve: { alias: { '@': '/src' } },
  server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
  build: { target: 'esnext', outDir: 'dist' },
})

公式プラグイン

  • @vitejs/plugin-vue - Vue 3 SFC サポート
  • @vitejs/plugin-vue-jsx - Vue 3 JSX
  • @vitejs/plugin-react - Oxc/Babel を使用した React
  • @vitejs/plugin-react-swc - SWC を使用した React
  • @vitejs/plugin-legacy - レガシーブラウザのサポート
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Vite

Based on Vite 8 beta (Rolldown-powered). Vite 8 uses Rolldown bundler and Oxc transformer.

Vite is a next-generation frontend build tool with fast dev server (native ESM + HMR) and optimized production builds.

Preferences

  • Use TypeScript: prefer vite.config.ts
  • Always use ESM, avoid CommonJS

Core

Topic Description Reference
Configuration vite.config.ts, defineConfig, conditional configs, loadEnv core-config
Features import.meta.glob, asset queries (?raw, ?url), import.meta.env, HMR API core-features
Plugin API Vite-specific hooks, virtual modules, plugin ordering core-plugin-api

Build & SSR

Topic Description Reference
Build & SSR Library mode, SSR middleware mode, ssrLoadModule, JavaScript API build-and-ssr

Advanced

Topic Description Reference
Environment API Vite 6+ multi-environment support, custom runtimes environment-api
Rolldown Migration Vite 8 changes: Rolldown bundler, Oxc transformer, config migration rolldown-migration

Quick Reference

CLI Commands

vite              # Start dev server
vite build        # Production build
vite preview      # Preview production build
vite build --ssr  # SSR build

Common Config

import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [],
  resolve: { alias: { '@': '/src' } },
  server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
  build: { target: 'esnext', outDir: 'dist' },
})

Official Plugins

  • @vitejs/plugin-vue - Vue 3 SFC support
  • @vitejs/plugin-vue-jsx - Vue 3 JSX
  • @vitejs/plugin-react - React with Oxc/Babel
  • @vitejs/plugin-react-swc - React with SWC
  • @vitejs/plugin-legacy - Legacy browser support

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。