Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Vite Vite Build Options

Configures the Vite build process by defining options for output directory, asset handling, minification, CSS splitting, and sourcemap generation.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Vite Vite Build Options

Configures the Vite build process by defining options for output directory, asset handling, minification, CSS splitting, and sourcemap generation.

When To Use

Use when you need to customize the production build output, such as changing the output directory, configuring minification, or managing sourcemaps and CSS splitting in a Vite project.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/vite-build-options-workflow-guide.mdA markdown reference detailing the available configuration options for the Vite build process, including target, module preload, and output directory settings.Questions about a markdown reference detailing the available configuration options for the Vite build process, including target, modu...
examples/vite-build-options-configuration-examples.textA collection of configuration settings and property definitions for the Vite build process.Exact payloads, commands, or snippets shown in A collection of configuration settings and property definitions for the Vite build process.
examples/vite-build-options-resolve-module-preload-dependencies-type-definition.textA TypeScript type definition for the ResolveModulePreloadDependenciesFn function within the Vite build configuration.Exact payloads, commands, or snippets shown in A TypeScript type definition for the ResolveModulePreloadDependenciesFn function within the Vite build configuration.
examples/vite-build-options-module-preload-config.textA configuration example demonstrating the modulePreload object options for the Vite build process.Exact payloads, commands, or snippets shown in A configuration example demonstrating the modulePreload object options for the Vite build process.
examples/vite-build-options-esbuild-installation-command.textThe command to install esbuild as a development dependency for Vite build operations.Exact payloads, commands, or snippets shown in The command to install esbuild as a development dependency for Vite build operations.
examples/vite-build-options-lib-mode-config.textA configuration object demonstrating how to use the build.lib option in Vite to define library entry points and file naming patterns.Exact payloads, commands, or snippets shown in A configuration object demonstrating how to use the build.lib option in Vite to define library entry points and file...
examples/vite-build-options-configuration.textA text representation of Vite build configuration options and dependency license metadata.Exact payloads, commands, or snippets shown in A text representation of Vite build configuration options and dependency license metadata.
examples/vite-build-options-config.textA configuration object demonstrating various Vite build options including license and rolldown options.Exact payloads, commands, or snippets shown in A configuration object demonstrating various Vite build options including license and rolldown options.
examples/vite-build-options-esbuild-terser-installation.textThe text file provides npm commands for adding esbuild and terser as development dependencies for Vite build configurations.Exact payloads, commands, or snippets shown in The text file provides npm commands for adding esbuild and terser as development dependencies for Vite build configur...

What This Skill Covers

  • Are you an LLM? You can read better optimized documentation at /config/build-options.md for this page in Markdown format
  • Main sections: build.target ​, build.modulePreload ​, build.polyfillModulePreload ​, build.outDir ​, build.assetsDir ​.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://vite.dev/config/build-options