FEAT => 本次更新项目为:

This commit is contained in:
超级老白兔
2025-07-29 19:29:07 +08:00
parent d9f2e134b1
commit dd2db73e9d

View File

@@ -1,27 +1,27 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve("src"),
},
},
server: {
open: true,
},
build: {
chunkSizeWarningLimit: 1500, // 提高警告阈值,减少无关警告
rollupOptions: {
output: {
manualChunks: {
"react-vendor": ["react", "react-dom"],
"antd-vendor": ["antd", "@ant-design/icons", "antd-mobile"],
"echarts-vendor": ["echarts", "echarts-for-react"],
},
},
},
},
});
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve("src"),
},
},
server: {
open: true,
},
build: {
chunkSizeWarningLimit: 1500, // 提高警告阈值,减少无关警告
rollupOptions: {
output: {
manualChunks: {
"react-vendor": ["react", "react-dom"],
"antd-vendor": ["antd", "@ant-design/icons", "antd-mobile"],
"echarts-vendor": ["echarts", "echarts-for-react"],
},
},
},
},
});