You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
462 B
JavaScript

8 months ago
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
8 months ago
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from '@vant/auto-import-resolver';
8 months ago
// https://vitejs.dev/config/
export default defineConfig({
8 months ago
server:{
host:'0.0.0.0'
},
8 months ago
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
8 months ago
plugins: [vue(),Components({
resolvers: [VantResolver()],
}),],
8 months ago
})