2022-04-02 16:14:53 +08:00
|
|
|
import path from 'path'
|
|
|
|
|
2022-04-02 14:54:55 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
|
|
import react from '@vitejs/plugin-react'
|
2022-04-02 15:13:30 +08:00
|
|
|
import UnoCSS from 'unocss/vite'
|
2022-04-02 14:54:55 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
2022-04-02 16:14:53 +08:00
|
|
|
'~/': `${path.resolve(__dirname, 'src')}/`,
|
2022-04-02 14:54:55 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
AutoImport(),
|
|
|
|
react(),
|
2022-04-02 15:13:30 +08:00
|
|
|
UnoCSS(),
|
2022-04-02 14:54:55 +08:00
|
|
|
],
|
|
|
|
})
|