feat: preserve user log level (#2310)

pull/2314/head
Joaquín Sánchez 2 years ago committed by GitHub
parent 0073a7d8a2
commit a647cd3843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@ export async function buildMPAClient(
root: config.srcDir, root: config.srcDir,
cacheDir: config.cacheDir, cacheDir: config.cacheDir,
base: config.site.base, base: config.site.base,
logLevel: 'warn', logLevel: config.vite?.logLevel ?? 'warn',
build: { build: {
emptyOutDir: false, emptyOutDir: false,
outDir: config.outDir, outDir: config.outDir,

@ -57,7 +57,7 @@ export async function bundle(
root: config.srcDir, root: config.srcDir,
cacheDir: config.cacheDir, cacheDir: config.cacheDir,
base: config.site.base, base: config.site.base,
logLevel: 'warn', logLevel: config.vite?.logLevel ?? 'warn',
plugins: await createVitePressPlugin( plugins: await createVitePressPlugin(
config, config,
ssr, ssr,

Loading…
Cancel
Save