You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
379 B
19 lines
379 B
1 year ago
|
import { join, resolve } from 'node:path'
|
||
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import UnoCSS from 'unocss/vite'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [vue(), UnoCSS()],
|
||
|
server: {
|
||
|
host: '0.0.0.0',
|
||
|
},
|
||
|
resolve: {
|
||
|
// 配置路径别名
|
||
|
alias: {
|
||
|
'@': join(__dirname, 'src'),
|
||
|
},
|
||
|
},
|
||
|
})
|