Skip to content

Commit

Permalink
fix: update base option usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 24, 2021
1 parent 820fe38 commit 8cfdd19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/build/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ 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']
},
build: {
...options,
emptyOutDir: true,
ssr,
base: config.site.base,
outDir: ssr ? config.tempDir : config.outDir,
cssCodeSplit: false,
rollupOptions: {
Expand Down

0 comments on commit 8cfdd19

Please sign in to comment.