MCPcopy
hub / github.com/vitejs/vite / getConfig

Function getConfig

playground/css-dynamic-import/__tests__/css-dynamic-import.spec.ts:11–18  ·  view source on GitHub ↗
(base: string)

Source from the content-addressed store, hash-verified

9]
10
11const getConfig = (base: string): InlineConfig => ({
12 base,
13 root: rootDir,
14 logLevel: 'silent',
15 server: { port: ports['css/dynamic-import'] },
16 preview: { port: ports['css/dynamic-import'] },
17 build: { assetsInlineLimit: 0 },
18})
19
20async function withBuild(base: string, fn: () => Promise<void>) {
21 const config = getConfig(base)

Callers 2

withBuildFunction · 0.70
withServeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected