mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
448 B
20 lines
448 B
import { dirname, resolve } from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
import { defineConfig } from 'vite'
|
|
|
|
const dir = dirname(fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@siteData': resolve(dir, './shims.ts'),
|
|
client: resolve(dir, '../src/client'),
|
|
node: resolve(dir, '../src/node'),
|
|
vitepress: resolve(dir, '../src/client')
|
|
}
|
|
},
|
|
test: {
|
|
globals: true
|
|
}
|
|
})
|