From 8cfdd1912dda9153daa7cb4db8e5c9f0cab4d654 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 24 Jan 2021 02:20:03 -0500 Subject: [PATCH] fix: update base option usage --- src/node/build/bundle.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/build/bundle.ts b/src/node/build/bundle.ts index 7f499958970c..f167ab6adde8 100644 --- a/src/node/build/bundle.ts +++ b/src/node/build/bundle.ts @@ -36,8 +36,10 @@ export async function bundle( const resolveViteConfig = (ssr: boolean): ViteUserConfig => ({ root, + base: config.site.base, logLevel: 'warn', plugins: createVitePressPlugin(root, config, ssr, pageToHashMap), + // @ts-ignore ssr: { noExternal: ['vitepress'] }, @@ -45,7 +47,6 @@ export async function bundle( ...options, emptyOutDir: true, ssr, - base: config.site.base, outDir: ssr ? config.tempDir : config.outDir, cssCodeSplit: false, rollupOptions: {