From 589151d1edded867fd8d15e9249fd0dfbf3544ef Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期一, 21 四月 2025 13:23:19 +0800
Subject: [PATCH] 优化菜单搜索查询页
---
vite.config.js | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 612e893..9389f4d 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -23,6 +23,21 @@
// https://cn.vitejs.dev/config/#resolve-extensions
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
},
+ // 鎵撳寘閰嶇疆
+ build: {
+ // https://vite.dev/config/build-options.html
+ sourcemap: command === 'build' ? false : 'inline',
+ outDir: 'dist',
+ assetsDir: 'assets',
+ chunkSizeWarningLimit: 2000,
+ rollupOptions: {
+ output: {
+ chunkFileNames: 'static/js/[name]-[hash].js',
+ entryFileNames: 'static/js/[name]-[hash].js',
+ assetFileNames: 'static/[ext]/[name]-[hash].[ext]'
+ }
+ }
+ },
// vite 鐩稿叧閰嶇疆
server: {
port: 80,
@@ -35,7 +50,7 @@
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
}
- },
+ }
},
//fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
css: {
@@ -51,8 +66,8 @@
}
}
}
- ],
- },
- },
+ ]
+ }
+ }
}
})
--
Gitblit v1.9.3