Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/Code-Create
This commit is contained in:
@@ -3,6 +3,7 @@ import type { ViteSSGOptions } from 'vite-ssg'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import generateSitemap from 'vite-ssg-sitemap'
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
|
||||
// https://vite.dev/config/
|
||||
const config = {
|
||||
@@ -24,7 +25,13 @@ const config = {
|
||||
outDir: 'dist'
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
_c: fileURLToPath(new URL('./src/components', import.meta.url))
|
||||
}
|
||||
},
|
||||
} satisfies UserConfig & { ssgOptions: ViteSSGOptions }
|
||||
|
||||
export default defineConfig(config)
|
||||
|
||||
Reference in New Issue
Block a user