mirror of https://gitee.com/godoos/godoos.git
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.
47 lines
1007 B
47 lines
1007 B
import vue from "@vitejs/plugin-vue";
|
|
import path from 'path';
|
|
import AutoImport from 'unplugin-auto-import/vite';
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
|
|
import Components from 'unplugin-vue-components/vite';
|
|
import { defineConfig } from "vite";
|
|
|
|
|
|
export default defineConfig(async () => ({
|
|
plugins: [
|
|
vue(),
|
|
AutoImport({
|
|
imports: [
|
|
// presets
|
|
'vue',
|
|
'vue-router',
|
|
],
|
|
resolvers: [ElementPlusResolver()],
|
|
}),
|
|
Components({
|
|
resolvers: [ElementPlusResolver()],
|
|
}),
|
|
],
|
|
|
|
clearScreen: false,
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 8215
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, 'src'),
|
|
"~": path.resolve(__dirname, 'wailsjs')
|
|
},
|
|
},
|
|
build: {
|
|
sourcemap: true,
|
|
// 打包环境移除console.log,debugger
|
|
terserOptions: {
|
|
compress: {
|
|
drop_console: true,
|
|
drop_debugger: true
|
|
}
|
|
},
|
|
//outDir: '../godo/deps/dist',
|
|
}
|
|
}));
|
|
|