From d2d9e536555aca662fa7154e517ef2269d97af33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Tue, 29 Jul 2025 19:27:48 +0800 Subject: [PATCH] =?UTF-8?q?FEAT=20=3D>=20=E6=9C=AC=E6=AC=A1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E4=B8=BA=EF=BC=9A=20=E6=9D=91?= =?UTF-8?q?=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nkebao/vite.config.ts | 54 +++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/nkebao/vite.config.ts b/nkebao/vite.config.ts index 61202518..f1a085ec 100644 --- a/nkebao/vite.config.ts +++ b/nkebao/vite.config.ts @@ -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"], + }, + }, + }, + }, +});