reactemplate/vite.config.ts

18 lines
314 B
TypeScript
Raw Normal View History

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: {
'~': 'src',
},
},
plugins: [
AutoImport(),
react(),
2022-04-02 15:13:30 +08:00
UnoCSS(),
2022-04-02 14:54:55 +08:00
],
})