Interface TopViteConfig

Hierarchy

  • TopViteConfig

Properties

alias?: AliasOptions

Allows vite to handle custom import phrases, note if they're in tsconfig not 100% sure if this is needed. E.g. import { resolve } from "path"; alias: { "@": resolve("./bitbazaar"), }

Or better yet, just use the tsconfig paths:
import tsconfig from "./tsconfig.json";
alias: tsconfig.compilerOptions.paths,
extraNonFrontendGlobs?: string[]

Extra globs to exclude from traversal, can help with performance:

favicon192PngPath: string
favicon512PngPath: string
inspect?: boolean

Include the inspect plugin, which allows you to see how vite is transforming code:

port: number
proxy?: ProxyConf

Proxy rules to apply to the dev server (i.e. when it should forward requests to a backend)

sameDomStaticPath: string

The os path to the files that will deployed to sameDomStaticUrl. Note if the static files are hosted on the same domain (i.e. not linking to a cdn, these can be the same as main static version) E.g. /.../~sds

sameDomStaticUrl: string

The absolute url online that sameDomStaticPath files can be retrieved from Note if the static files are hosted on the same domain (i.e. not linking to a cdn, these can be the same as main static version) E.g. https://example.com/~sds

serverFs?: FileSystemServeOptions
siteDescription: string
siteName: string
staticPath: string

The os path to the files that will deployed to staticUrl. E.g. /.../static

staticUrl: string

The absolute url online that staticPath files can be retrieved from E.g. https://example.com/static

Generated using TypeDoc