Skip to main content
prompt GP ChatGPT

Vite Frontend Tooling taste — ChatGPT prompt for Vite setup

The Vite Frontend Tooling taste ChatGPT prompt sets preferences for building frontend projects with Vite. It covers app setup, type checks, tests, and release builds.

CC0-1.0 ★ 178,201 updated 2026-10-24

Open on GitHub

What Vite Frontend Tooling taste does

The prompt lays out Vite project conventions: start with the framework’s official plugin, keep settings in a readable vite.config.ts, and run tsc --noEmit separately. Vite strips TypeScript syntax but does not type-check, so the prompt calls for checks in CI and a watcher.

It recommends Vitest for tests and typed import.meta.env declarations in vite-env.d.ts. For release checks, it suggests vite preview and rollup-plugin-visualizer; library builds use vite build --lib. Other topics include API proxies, lazy-loaded routes, and upgrading Vite alongside its plugins.

What it helps with

  • start a Vite single-page app or component playground
  • add a separate TypeScript check to CI
  • choose a test setup for components and modules
  • inspect bundle size before a release
  • prepare a Vite build for publishing a library

Example prompts for the agent

  • Set up a new Vite single-page app and outline its configuration.
  • How should this Vite project run type checks and tests?
  • Give me a production-build smoke test plan for a Vite app.

How to install Vite Frontend Tooling taste

How to use

Paste the text at the start of a chat or into project instructions

Questions about Vite Frontend Tooling taste

How do I install Vite Frontend Tooling taste in ChatGPT?

The listed Claude Code command file is .claude/commands/prompts.csv.md. In ChatGPT, the prompt text can be used as instructions in a message.

What does Vite Frontend Tooling taste do?

It sets preferences for Vite frontend work, covering configuration, type checking, tests, bundle inspection, and release builds.

How does the prompt handle TypeScript checks in Vite?

It recommends running tsc --noEmit separately in CI and in a watcher, since Vite removes type syntax without checking types.

Source text

prompts.csv · CC0-1.0
# Vite Frontend Tooling taste of a fast-feedback web developer
- Start new single-page apps and component playgrounds on Vite with the official framework plugin instead of a custom webpack setup. Confidence: 0.85
- Keep `vite.config.ts` in TypeScript with `defineConfig`, and keep it short enough to read in one screen. Confidence: 0.80
- Run type checking separately with `tsc --noEmit` in CI and in a watcher, since Vite only strips types and never checks them. Confidence: 0.95
- Use path aliases sparingly, define them once in `tsconfig.json`, and mirror them in Vite with a plugin such as `vite-tsconfig-paths`. Confidence: 0.75
- Expose only `VITE_`-prefixed environment variables to client code and never put secrets in them. Confidence: 0.95
- Type `import.meta.env` in a `vite-env.d.ts` file so missing or misspelled variables fail at compile time. Confidence: 0.80
- Configure the dev server proxy for backend APIs instead of enabling permissive CORS on the backend just for local development. Confidence: 0.85
- Use Vitest for unit and component tests so tests share the same config, transforms and aliases as the app. Confidence: 0.90
- Lazy-load routes and heavy widgets with dynamic `import()` and let Rollup split chunks, rather than hand-tuning `manualChunks` early. Confidence: 0.80
- Inspect bundle size with `rollup-plugin-visualizer` before releases and treat a large new dependency as a review topic. Confidence: 0.75
- Import assets through the module graph so they get hashed file names, keeping `public/` for files that need fixed URLs like `robots.txt`. Confidence: 0.85
- Set an explicit `build.target` that matches the browsers you support, instead of relying on the default. Confidence: 0.70
- Generate source maps for production builds and upload them to your error tracker rather than serving them publicly. Confidence: 0.80
- Prefer native CSS features and CSS modules or Tailwind over heavy CSS-in-JS runtimes in Vite projects. Confidence: 0.70
- Keep the plugin list small and remove plugins that duplicate built-in features such as JSON imports or CSS handling. Confidence: 0.80
- Use `vite preview` to smoke-test the production build locally before deploying, since dev and build use different pipelines. Confidence: 0.85
- Pin Vite and plugin versions in the lockfile and upgrade them together, reading the migration guide for major versions. Confidence: 0.85
- Use library mode with `vite build --lib` plus a declaration generator when publishing a component package, and mark peer dependencies as external. Confidence: 0.75
- Fix slow cold starts by checking `optimizeDeps` and large barrel files before blaming Vite itself. Confidence: 0.70
- Fail CI on build warnings about circular imports or missing exports instead of letting them pile up. Confidence: 0.65

© f · CC0-1.0 · f/prompts.chat

Similar prompts

All prompts for Frontend and UI →

From the same set218

The whole set →
Python Type Hints taste The Python Type Hints taste ChatGPT prompt sets conventions for typing Python code. It covers annotations, type choices, and static checking. GP ChatGPT ★ 178,201repo stars Secrets Management taste Secrets Management taste — a prompt for ChatGPT that defines security standards and best practices for secrets management. GP ChatGPT ★ 178,201repo stars Tokio Async Rust taste The Tokio Async Rust taste prompt for ChatGPT sets engineering conventions for asynchronous Rust services built with Tokio. It applies while writing or reviewing code that handles task cancellation, network timeouts, and shutdown. GP ChatGPT ★ 178,201repo stars Tailwind CSS taste Tailwind CSS taste is a prompt for ChatGPT, Claude.ai, and Claude Code that sets utility-first styling rules, design tokens, and bans arbitrary pixel sizes in Tailwind CSS code. GP ChatGPT ★ 178,201repo stars Linux Server Hardening taste Linux Server Hardening taste — a prompt for ChatGPT provides an operations engineering ruleset for hardening Linux servers. It guides base image setup, SSH access policies, and automated configuration via Ansible or cloud-init. GP ChatGPT ★ 178,201repo stars Database Schema Design taste The Database Schema Design taste ChatGPT prompt sets rules for designing relational database schemas. It covers keys, constraints, indexes, and data storage. GP ChatGPT ★ 178,201repo stars Solidity Smart Contract taste The Solidity Smart Contract taste prompt for ChatGPT, Claude.ai, and Claude Code sets security standards for writing Solidity smart contracts. It helps protocol engineers implement best practices during development. GP ChatGPT ★ 178,201repo stars Pandas Data Analysis taste The Pandas Data Analysis taste prompt for ChatGPT and Claude.ai offers a set of best practices for working with the Pandas library. It helps apply principles of reproducible data analysis. GP ChatGPT ★ 178,201repo stars

Project sponsors

Companies that keep this analytics open