2024-01-25 22:56:35 +08:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2024-01-25 23:36:42 +08:00
|
|
|
import Components from 'unplugin-vue-components/vite';
|
|
|
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
2024-01-25 22:56:35 +08:00
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [
|
|
|
|
vue(),
|
2024-01-25 23:36:42 +08:00
|
|
|
Components({
|
|
|
|
resolvers: [
|
|
|
|
AntDesignVueResolver({
|
|
|
|
importStyle: false, // css in js
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
}),
|
2024-01-25 22:56:35 +08:00
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|