mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2026-01-13 06:05:59 +08:00
26 lines
735 B
TypeScript
26 lines
735 B
TypeScript
import { fileURLToPath, URL } from 'url'
|
|
|
|
import { viteConfig } from '@halo-dev/ui-plugin-bundler-kit'
|
|
import Icons from 'unplugin-icons/vite'
|
|
import { configDefaults } from 'vitest/config'
|
|
|
|
// For more info,
|
|
// please see https://github.com/halo-dev/halo/tree/main/ui/packages/ui-plugin-bundler-kit
|
|
export default viteConfig({
|
|
vite: {
|
|
plugins: [Icons({ compiler: 'vue3' })],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
|
|
// If you don't use Vitest, you can remove the following configuration
|
|
test: {
|
|
environment: 'jsdom',
|
|
exclude: [...configDefaults.exclude, 'e2e/**'],
|
|
root: fileURLToPath(new URL('./', import.meta.url)),
|
|
},
|
|
},
|
|
})
|