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.
33 lines
654 B
33 lines
654 B
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import Components from 'unplugin-vue-components/vite';
|
|
import { VantResolver } from '@vant/auto-import-resolver';
|
|
import { resolve } from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
return {
|
|
base: './',
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
Components({
|
|
resolvers: [
|
|
VantResolver(),
|
|
],
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src')
|
|
}
|
|
},
|
|
esbuild: {
|
|
drop: ["console", "debugger"],
|
|
},
|
|
}
|
|
})
|