feat: 本次更新项目为:
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user