修改一些配置

This commit is contained in:
2025-12-30 11:14:35 +08:00
parent d5978214f4
commit de17729ac1
3 changed files with 5 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ export default defineConfig(({ mode, command }) => {
assetsDir: 'assets',
chunkSizeWarningLimit: 2000,
rollupOptions: {
treeshake: false, // 关闭 tree-shaking
output: {
chunkFileNames: 'static/js/[name]-[hash].js',
entryFileNames: 'static/js/[name]-[hash].js',
@@ -42,7 +43,7 @@ export default defineConfig(({ mode, command }) => {
},
// vite 相关配置
server: {
port: 82,
port: 80,
host: true,
open: true,
proxy: {