From 94b93ea7e7f83c678b1413fc9fc8642e69213647 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期二, 18 六月 2024 14:49:57 +0800 Subject: [PATCH] 版本更新 --- vite.config.ts | 38 ++++++++++++-------------------------- 1 files changed, 12 insertions(+), 26 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 1acb601..c432847 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,17 +1,16 @@ +/* + * @Description: file content + * @Author: your name + * @version: + * @Date: 2024-06-17 14:51:26 + * @LastEditors: your name + * @LastEditTime: 2024-06-17 15:18:56 + */ import { defineApplicationConfig } from '@vben/vite-config'; -import topLevelAwait from 'vite-plugin-top-level-await'; -import vueSetupExtend from 'vite-plugin-vue-setup-extend'; - -// export default defineConfig({ -// plugins: [vue(), vueSetupExtend()], -// }); export default defineApplicationConfig({ overrides: { optimizeDeps: { - esbuildOptions: { - target: 'esnext', - }, include: [ 'echarts/core', 'echarts/charts', @@ -27,7 +26,7 @@ port: 3100, proxy: { '/basic-api': { - target: 'http://localhost:9528', + target: 'http://localhost:3000', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), @@ -41,22 +40,9 @@ rewrite: (path) => path.replace(new RegExp(`^/upload`), ''), }, }, - }, - plugins: [ - topLevelAwait({ - promiseExportName: '__tla', - promiseImportName: (i) => `__tla_${i}`, - }), - vueSetupExtend(), - ], - build: { - target: 'esnext', - rollupOptions: { - output: { - manualChunks: { - echarts: ['echarts'], - }, - }, + open: true, // 椤圭洰鍚姩鍚庯紝鑷姩鎵撳紑 + warmup: { + clientFiles: ['./index.html', './src/{views,components}/*'], }, }, }, -- Gitblit v1.9.3