Vite shared configurations

Last modified by superadmin on 2026/11/25 21:39

The functions returning the shared Vite configuration of a package, of a package with Vue components, or of a WebJar.

Reference

generateConfig

Provide the default shared Vite configuration for packages.

import type { UserConfig } from "vite";
generateConfig(path: string, distPath: string = "dist", entryRoot: string = "./src/"): UserConfig

generateConfigVue

Provide the shared Vite configuration for packages with Vue components

import type { UserConfig } from "vite";
generateWebjarNodeConfig(path: string, toBundle: string[] = [],): UserConfig;

generateWebjarNodeConfig

Provide the shared Vite configuration for webjar modules.

import type { UserConfig } from "vite";
generateWebjarNodeConfig(path: string, toBundle: string[] = []): UserConfig;

Related

Get Connected