Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit b86c8aa

Browse files
committed
fix: setup demo build for gh pages
1 parent f276cb3 commit b86c8aa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo/vite.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import { defineConfig } from 'vite'
33
import vue from '@vitejs/plugin-vue'
44
import WindiCSS from 'vite-plugin-windicss'
55

6-
export default defineConfig({
6+
export default ({ mode }: { mode: 'production'| 'development' }) => defineConfig({
7+
base: mode === 'production'
8+
? '/gitart-vue-dialog/'
9+
: '/',
10+
711
plugins: [
812
vue(),
913
WindiCSS(),
@@ -20,4 +24,4 @@ export default defineConfig({
2024
'plugin': path.resolve(__dirname, '../dist'),
2125
},
2226
},
23-
})
27+
})

0 commit comments

Comments
 (0)